Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / chrome / browser / safe_browsing / incident_reporting / incident_receiver.h
blobeb1a019f36a7cfbc24b1481fc07334d92f738bfc
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.
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
8 #include "base/memory/scoped_ptr.h"
10 class Profile;
12 namespace safe_browsing {
14 class Incident;
16 // An interface by which incidents may be added to the incident reporting
17 // service.
18 class IncidentReceiver {
19 public:
20 virtual ~IncidentReceiver() {}
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;
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;
31 } // namespace safe_browsing
33 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_