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

Side by Side 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, 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 2015 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_INCIDENT_RECEIVER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 class Profile;
11
12 namespace safe_browsing {
13
14 class Incident;
15
16 // An interface by which incidents may be added to the incident reporting
17 // service.
18 class IncidentReceiver {
19 public:
20 virtual ~IncidentReceiver() {}
21
22 // Adds an incident relating to |profile|. Must be called from the UI thread.
23 virtual void AddIncidentForProfile(Profile* profile,
24 scoped_ptr<Incident> incident) = 0;
25
26 // Adds an incident relating to the entire browser process. May be called from
27 // any thread.
28 virtual void AddIncidentForProcess(scoped_ptr<Incident> incident) = 0;
29 };
30
31 } // namespace safe_browsing
32
33 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698