OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "chrome/common/safe_browsing/csd.pb.h" | 10 #include "chrome/common/safe_browsing/csd.pb.h" |
8 #include "chrome/common/safe_browsing/mach_o_image_reader_mac.h" | 11 #include "chrome/common/safe_browsing/mach_o_image_reader_mac.h" |
9 | 12 |
10 namespace safe_browsing { | 13 namespace safe_browsing { |
11 | 14 |
12 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( | 15 bool BinaryFeatureExtractor::ExtractImageFeaturesFromData( |
13 const uint8_t* data, size_t data_size, | 16 const uint8_t* data, size_t data_size, |
14 ExtractHeadersOption options, | 17 ExtractHeadersOption options, |
15 ClientDownloadRequest_ImageHeaders* image_headers, | 18 ClientDownloadRequest_ImageHeaders* image_headers, |
16 google::protobuf::RepeatedPtrField<std::string>* signed_data) { | 19 google::protobuf::RepeatedPtrField<std::string>* signed_data) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 reinterpret_cast<const char*>(&code_signature[0]), | 59 reinterpret_cast<const char*>(&code_signature[0]), |
57 code_signature.size()); | 60 code_signature.size()); |
58 } | 61 } |
59 } | 62 } |
60 } | 63 } |
61 | 64 |
62 return true; | 65 return true; |
63 } | 66 } |
64 | 67 |
65 } // namespace safe_browsing | 68 } // namespace safe_browsing |
OLD | NEW |