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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h

Issue 1643573002: Add a ModuleLoadAnalyzer which checks modules against a whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make module_load_analyzer classless, remove static global and use CONTINUE_ON_SHUTDOWN Created 4 years, 10 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698