| 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 #include "chrome/browser/safe_browsing/binary_feature_extractor.h" | 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <softpub.h> | 8 #include <softpub.h> |
| 9 #include <wintrust.h> | 9 #include <wintrust.h> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/memory_mapped_file.h" | 12 #include "base/files/memory_mapped_file.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "chrome/browser/safe_browsing/pe_image_reader_win.h" | |
| 15 #include "chrome/common/safe_browsing/csd.pb.h" | 14 #include "chrome/common/safe_browsing/csd.pb.h" |
| 15 #include "chrome/common/safe_browsing/pe_image_reader_win.h" |
| 16 | 16 |
| 17 #pragma comment(lib, "wintrust.lib") | 17 #pragma comment(lib, "wintrust.lib") |
| 18 | 18 |
| 19 namespace safe_browsing { | 19 namespace safe_browsing { |
| 20 | 20 |
| 21 BinaryFeatureExtractor::BinaryFeatureExtractor() {} | 21 BinaryFeatureExtractor::BinaryFeatureExtractor() {} |
| 22 | 22 |
| 23 BinaryFeatureExtractor::~BinaryFeatureExtractor() {} | 23 BinaryFeatureExtractor::~BinaryFeatureExtractor() {} |
| 24 | 24 |
| 25 void BinaryFeatureExtractor::CheckSignature( | 25 void BinaryFeatureExtractor::CheckSignature( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 sizeof(*directory_entry)); | 143 sizeof(*directory_entry)); |
| 144 if (raw_data) | 144 if (raw_data) |
| 145 debug_data->set_raw_data(raw_data, raw_data_size); | 145 debug_data->set_raw_data(raw_data, raw_data_size); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 return true; | 149 return true; |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace safe_browsing | 152 } // namespace safe_browsing |
| OLD | NEW |