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

Unified 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: abort_reporting to static field, add test for shutdown case 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.cc b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..15ba9c6f4de901792695547fae345bafad940b6a
--- /dev/null
+++ b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.cc
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h"
+
+#include "build/build_config.h"
+#include "chrome/browser/browser_process.h"
+#include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
+#include "chrome/browser/safe_browsing/safe_browsing_service.h"
+
+namespace safe_browsing {
+
+ModuleLoadAnalyzer::ModuleLoadAnalyzer(
+ const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager)
+ : database_manager_(database_manager) {
+ Initialize();
+}
+
+#if !defined(OS_WIN)
+ModuleLoadAnalyzer::~ModuleLoadAnalyzer() {}
+void ModuleLoadAnalyzer::Initialize() {}
+void ModuleLoadAnalyzer::VerifyModuleLoadState(
+ scoped_ptr<IncidentReceiver> incident_receiver) {}
+void ModuleLoadAnalyzer::GetLoadedSuspiciousModulesOnIOThread(
+ scoped_ptr<IncidentReceiver> incident_receiver) {}
+// static
+void ModuleLoadAnalyzer::ReportIncidentsForSuspiciousModules(
+ scoped_ptr<std::set<base::string16>> module_names,
+ scoped_ptr<IncidentReceiver> incident_receiver) {}
+#endif // !defined(OS_WIN)
+
+} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698