Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / safe_browsing / incident_reporting / delayed_analysis_callback.h
blob78404025760ec4959a28bfa8e1e0f9f4d6573499
1 // Copyright 2014 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_DELAYED_ANALYSIS_CALLBACK_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_DELAYED_ANALYSIS_CALLBACK_H_
8 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace safe_browsing {
13 class IncidentReceiver;
15 // A callback used by external components to register a process-wide analysis
16 // step. The callback will be run after some delay following process launch in
17 // the blocking pool. The argument is a receiver by which the consumer can add
18 // incidents to the incident reporting service.
19 typedef base::Callback<void(scoped_ptr<IncidentReceiver>)>
20 DelayedAnalysisCallback;
22 } // namespace safe_browsing
24 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_DELAYED_ANALYSIS_CALLBACK_H_