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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_receiver.h

Issue 891793002: Take a Profile when adding an incident to the incident reporting service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OnMainThread Created 5 years, 11 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/incident_receiver.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h b/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb1a019f36a7cfbc24b1481fc07334d92f738bfc
--- /dev/null
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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.
+
+#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
+#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+class Profile;
+
+namespace safe_browsing {
+
+class Incident;
+
+// An interface by which incidents may be added to the incident reporting
+// service.
+class IncidentReceiver {
+ public:
+ virtual ~IncidentReceiver() {}
+
+ // Adds an incident relating to |profile|. Must be called from the UI thread.
+ virtual void AddIncidentForProfile(Profile* profile,
+ scoped_ptr<Incident> incident) = 0;
+
+ // Adds an incident relating to the entire browser process. May be called from
+ // any thread.
+ virtual void AddIncidentForProcess(scoped_ptr<Incident> incident) = 0;
+};
+
+} // namespace safe_browsing
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_

Powered by Google App Engine
This is Rietveld 408576698