OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This is a stub for the code signing utilities on Mac and Linux. | 5 // This is a stub for the code signing utilities on Mac and Linux. |
6 // It should eventually be replaced with a real implementation. | 6 // It should eventually be replaced with a real implementation. |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 11 #include "build/build_config.h" |
8 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 12 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
9 | 13 |
10 namespace safe_browsing { | 14 namespace safe_browsing { |
11 | 15 |
12 void BinaryFeatureExtractor::CheckSignature( | 16 void BinaryFeatureExtractor::CheckSignature( |
13 const base::FilePath& file_path, | 17 const base::FilePath& file_path, |
14 ClientDownloadRequest_SignatureInfo* signature_info) {} | 18 ClientDownloadRequest_SignatureInfo* signature_info) {} |
15 | 19 |
16 #if !defined(OS_MACOSX) | 20 #if !defined(OS_MACOSX) |
17 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( | 21 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( |
18 const uint8_t* data, size_t data_size, | 22 const uint8_t* data, size_t data_size, |
19 ExtractHeadersOption options, | 23 ExtractHeadersOption options, |
20 ClientDownloadRequest_ImageHeaders* image_headers, | 24 ClientDownloadRequest_ImageHeaders* image_headers, |
21 google::protobuf::RepeatedPtrField<std::string>* signed_data) { | 25 google::protobuf::RepeatedPtrField<std::string>* signed_data) { |
22 return false; | 26 return false; |
23 } | 27 } |
24 #endif | 28 #endif |
25 | 29 |
26 } // namespace safe_browsing | 30 } // namespace safe_browsing |
OLD | NEW |