| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| // This is a stub for the code signing utilities on Mac and Linux. |
| // It should eventually be replaced with a real implementation. |
| |
| #include <stddef.h> |
| #include <stdint.h> |
| |
| #include "build/build_config.h" |
| #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
| |
| namespace safe_browsing { |
| |
| void BinaryFeatureExtractor::CheckSignature( |
| const base::FilePath& file_path, |
| ClientDownloadRequest_SignatureInfo* signature_info) {} |
| |
| #if !defined(OS_MACOSX) |
| bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( |
| const uint8_t* data, size_t data_size, |
| ExtractHeadersOption options, |
| ClientDownloadRequest_ImageHeaders* image_headers, |
| google::protobuf::RepeatedPtrField<std::string>* signed_data) { |
| return false; |
| } |
| #endif |
| |
| } // namespace safe_browsing |