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

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

Issue 1643573002: Add a ModuleLoadAnalyzer which checks modules against a whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments for patchsets #3 and #4 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 #include "chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h "
6
7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
10 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
11
12 namespace safe_browsing {
13
14 ModuleLoadAnalyzer::ModuleLoadAnalyzer(
15 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager)
16 : incident_receiver_(nullptr),
17 database_manager_(database_manager),
18 abort_reporting_(false) {
19 Initialize();
20 }
21
22 ModuleLoadAnalyzer::~ModuleLoadAnalyzer() {
23 abort_reporting_ = true;
24 }
25
26 #if !defined(OS_WIN)
27 void ModuleLoadAnalyzer::Initialize() {}
28
29 void ModuleLoadAnalyzer::GetLoadedSuspiciousModulesOnIOThread() {}
30
31 void ModuleLoadAnalyzer::ReportIncidentsForSuspiciousModules(
32 scoped_ptr<std::set<base::string16>> module_names) {}
33
34 bool ModuleLoadAnalyzer::VerifyModuleLoadState(
35 scoped_ptr<IncidentReceiver> incident_receiver) {
36 return false;
37 }
38 #endif // !defined(OS_WIN)
39
40 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698