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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer.cc

Issue 433513008: Add blacklist incidents to incident reporting service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mattm feedback Created 6 years, 4 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/blacklist_load_analyzer.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer.cc b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..34527ebd29714b5e3bc8a2feb40c15d3966fda22
--- /dev/null
+++ b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyzer.cc
@@ -0,0 +1,32 @@
+// Copyright 2014 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/blacklist_load_analyzer.h"
+
+#include "chrome/browser/browser_process.h"
+#include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h"
+#include "chrome/browser/safe_browsing/safe_browsing_service.h"
+
+namespace safe_browsing {
+
+void RegisterBlacklistLoadAnalysis() {
+#if defined(OS_WIN)
+ scoped_refptr<SafeBrowsingService> safe_browsing_service(
+ g_browser_process->safe_browsing_service());
+
+ safe_browsing_service->RegisterDelayedAnalysisCallback(
+ base::Bind(&VerifyBlacklistLoadState));
+#endif
+}
+
+#if !defined(OS_WIN)
+void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
+}
+
+bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names) {
+ return false;
+}
+#endif // !defined(OS_WIN)
+
+} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698