Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc

Issue 1015363003: Move BinaryFeatureExtractor and PEImageReader to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip2
Patch Set: sync to position 321353 Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/incident_reporting/environment_data_colle ction_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/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/win/registry.h" 14 #include "base/win/registry.h"
15 #include "chrome/browser/install_verification/win/module_info.h" 15 #include "chrome/browser/install_verification/win/module_info.h"
16 #include "chrome/browser/install_verification/win/module_verification_common.h" 16 #include "chrome/browser/install_verification/win/module_verification_common.h"
17 #include "chrome/browser/net/service_providers_win.h" 17 #include "chrome/browser/net/service_providers_win.h"
18 #include "chrome/browser/safe_browsing/binary_feature_extractor.h"
19 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif ier_win.h" 18 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif ier_win.h"
20 #include "chrome/browser/safe_browsing/path_sanitizer.h" 19 #include "chrome/browser/safe_browsing/path_sanitizer.h"
20 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
21 #include "chrome/common/safe_browsing/csd.pb.h" 21 #include "chrome/common/safe_browsing/csd.pb.h"
22 #include "chrome_elf/chrome_elf_constants.h" 22 #include "chrome_elf/chrome_elf_constants.h"
23 23
24 namespace safe_browsing { 24 namespace safe_browsing {
25 25
26 namespace { 26 namespace {
27 27
28 // The modules on which we will run VerifyModule. 28 // The modules on which we will run VerifyModule.
29 const wchar_t* const kModulesToVerify[] = { 29 const wchar_t* const kModulesToVerify[] = {
30 L"chrome.dll", 30 L"chrome.dll",
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void CollectPlatformProcessData( 153 void CollectPlatformProcessData(
154 ClientIncidentReport_EnvironmentData_Process* process) { 154 ClientIncidentReport_EnvironmentData_Process* process) {
155 CollectDlls(process); 155 CollectDlls(process);
156 RecordLspFeature(process); 156 RecordLspFeature(process);
157 CollectDllBlacklistData(process); 157 CollectDllBlacklistData(process);
158 CollectModuleVerificationData( 158 CollectModuleVerificationData(
159 kModulesToVerify, arraysize(kModulesToVerify), process); 159 kModulesToVerify, arraysize(kModulesToVerify), process);
160 } 160 }
161 161
162 } // namespace safe_browsing 162 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698