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"
12 namespace safe_browsing
{
16 // An interface by which incidents may be added to the incident reporting
18 class IncidentReceiver
{
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
28 virtual void AddIncidentForProcess(scoped_ptr
<Incident
> incident
) = 0;
31 } // namespace safe_browsing
33 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_