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/common/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 <stddef.h> |
| 10 #include <stdint.h> |
9 #include <wintrust.h> | 11 #include <wintrust.h> |
10 | 12 |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "chrome/common/safe_browsing/csd.pb.h" | 15 #include "chrome/common/safe_browsing/csd.pb.h" |
14 #include "chrome/common/safe_browsing/pe_image_reader_win.h" | 16 #include "chrome/common/safe_browsing/pe_image_reader_win.h" |
15 | 17 |
16 #pragma comment(lib, "wintrust.lib") | 18 #pragma comment(lib, "wintrust.lib") |
17 | 19 |
18 namespace safe_browsing { | 20 namespace safe_browsing { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 161 } |
160 } | 162 } |
161 | 163 |
162 if (signed_data) | 164 if (signed_data) |
163 pe_image.EnumCertificates(&OnCertificateEntry, signed_data); | 165 pe_image.EnumCertificates(&OnCertificateEntry, signed_data); |
164 | 166 |
165 return true; | 167 return true; |
166 } | 168 } |
167 | 169 |
168 } // namespace safe_browsing | 170 } // namespace safe_browsing |
OLD | NEW |