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

Unified Diff: chrome/browser/safe_browsing/delayed_analysis_callback.h

Issue 441453002: Support for process-wide incidents in the safe browsing incident reporting service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new test plus other review comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/delayed_callback_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/delayed_analysis_callback.h
diff --git a/chrome/browser/safe_browsing/delayed_analysis_callback.h b/chrome/browser/safe_browsing/delayed_analysis_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..e36282f38c072a57a7f4d7ede736de2d133ee8b1
--- /dev/null
+++ b/chrome/browser/safe_browsing/delayed_analysis_callback.h
@@ -0,0 +1,22 @@
+// Copyright 2014 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_DELAYED_ANALYSIS_CALLBACK_H_
+#define CHROME_BROWSER_SAFE_BROWSING_DELAYED_ANALYSIS_CALLBACK_H_
+
+#include "base/callback_forward.h"
+#include "chrome/browser/safe_browsing/add_incident_callback.h"
+
+namespace safe_browsing {
+
+// A callback used by external components to register a process-wide analysis
+// step. The callback will be run after some delay following process launch in
+// the blocking pool. The argument is a callback by which the consumer can add
+// incidents to the incident reporting service.
+typedef base::Callback<void(const AddIncidentCallback&)>
+ DelayedAnalysisCallback;
+
+} // namespace safe_browsing
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_DELAYED_ANALYSIS_CALLBACK_H_
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/delayed_callback_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698