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/environment_data_collection_win.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle
ction_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/win/registry.h" | 13 #include "base/win/registry.h" |
14 #include "chrome/browser/install_verification/win/module_info.h" | 14 #include "chrome/browser/install_verification/win/module_info.h" |
15 #include "chrome/browser/install_verification/win/module_verification_common.h" | 15 #include "chrome/browser/install_verification/win/module_verification_common.h" |
16 #include "chrome/browser/net/service_providers_win.h" | 16 #include "chrome/browser/net/service_providers_win.h" |
17 #include "chrome/browser/safe_browsing/module_integrity_verifier_win.h" | 17 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif
ier_win.h" |
18 #include "chrome/browser/safe_browsing/path_sanitizer.h" | 18 #include "chrome/browser/safe_browsing/path_sanitizer.h" |
19 #include "chrome/common/safe_browsing/csd.pb.h" | 19 #include "chrome/common/safe_browsing/csd.pb.h" |
20 #include "chrome_elf/chrome_elf_constants.h" | 20 #include "chrome_elf/chrome_elf_constants.h" |
21 | 21 |
22 namespace safe_browsing { | 22 namespace safe_browsing { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // The modules on which we will run VerifyModule. | 26 // The modules on which we will run VerifyModule. |
27 const wchar_t* const kModulesToVerify[] = { | 27 const wchar_t* const kModulesToVerify[] = { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void CollectPlatformProcessData( | 142 void CollectPlatformProcessData( |
143 ClientIncidentReport_EnvironmentData_Process* process) { | 143 ClientIncidentReport_EnvironmentData_Process* process) { |
144 CollectDlls(process); | 144 CollectDlls(process); |
145 RecordLspFeature(process); | 145 RecordLspFeature(process); |
146 CollectDllBlacklistData(process); | 146 CollectDllBlacklistData(process); |
147 CollectModuleVerificationData( | 147 CollectModuleVerificationData( |
148 kModulesToVerify, arraysize(kModulesToVerify), process); | 148 kModulesToVerify, arraysize(kModulesToVerify), process); |
149 } | 149 } |
150 | 150 |
151 } // namespace safe_browsing | 151 } // namespace safe_browsing |
OLD | NEW |