Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_ | |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_ | |
| 7 | |
| 8 #include <vector> | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
unused
proberge
2016/02/11 20:25:21
Done.
| |
| 9 | |
| 10 #include "base/feature_list.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/strings/string16.h" | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
move to module_load_analyzer_win.cc
proberge
2016/02/11 20:25:21
Done.
| |
| 14 #include "chrome/browser/install_verification/win/module_info.h" | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
move to module_load_analyzer_win.cc
proberge
2016/02/11 20:25:21
Done.
| |
| 15 #include "components/safe_browsing_db/database_manager.h" | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
forward decl SafeBrowsingDatabaseManager rather th
proberge
2016/02/11 20:25:21
Done; moved to module_load_analyzer.cc
| |
| 16 | |
| 17 namespace safe_browsing { | |
| 18 | |
| 19 class IncidentReceiver; | |
| 20 | |
| 21 #if defined(OS_WIN) | |
| 22 extern const base::Feature kIncidentReportingModuleLoadAnalysis; | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
does this need to be in the public header? it seem
proberge
2016/02/11 20:25:21
Done.
| |
| 23 #endif // defined(OS_WIN) | |
| 24 | |
| 25 // Registers a process-wide analysis with the incident reporting service that | |
| 26 // will examine modules loaded in the process. | |
| 27 void RegisterModuleLoadAnalysis( | |
| 28 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager); | |
| 29 | |
| 30 // Callback to pass to the incident reporting service. The incident reporting | |
| 31 // service will decide when to start the analysis. | |
| 32 void VerifyModuleLoadState( | |
| 33 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager, | |
| 34 scoped_ptr<IncidentReceiver> incident_receiver); | |
| 35 | |
| 36 // Gets the names of suspicious modules that are loaded in the process and fires | |
| 37 // |ReportIncidentsForSuspiciousModules| | |
| 38 void GetLoadedSuspiciousModulesOnIOThread( | |
|
grt (UTC plus 2)
2016/02/11 15:55:00
remove these two from the public header -- they're
proberge
2016/02/11 20:25:21
Done.
| |
| 39 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager, | |
| 40 scoped_ptr<IncidentReceiver> incident_receiver, | |
| 41 scoped_ptr<std::set<ModuleInfo>> module_info_set); | |
| 42 | |
| 43 // Creates and reports |SuspiciousModuleIncident| to the incident_receiver. | |
| 44 void ReportIncidentsForSuspiciousModules( | |
| 45 scoped_ptr<std::set<base::string16>> module_names, | |
| 46 scoped_ptr<IncidentReceiver> incident_receiver); | |
| 47 | |
| 48 } // namespace safe_browsing | |
| 49 | |
| 50 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_ H_ | |
| OLD | NEW |