| 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_
|
|
|