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

Unified Diff: chrome/browser/supervised_user/report_url_request_creator.h

Issue 1813833002: Add report URL to safe search API functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: chrome/browser/supervised_user/report_url_request_creator.h
diff --git a/chrome/browser/supervised_user/report_url_request_creator.h b/chrome/browser/supervised_user/report_url_request_creator.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f3329b6f91f77b9524844bcd80f320a2204d145
--- /dev/null
+++ b/chrome/browser/supervised_user/report_url_request_creator.h
@@ -0,0 +1,24 @@
+// 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_SUPERVISED_USER_REPORT_URL_REQUEST_CREATOR_H_
+#define CHROME_BROWSER_SUPERVISED_USER_REPORT_URL_REQUEST_CREATOR_H_
+
+#include "base/callback_forward.h"
+
+class GURL;
+
+class ReportUrlRequestCreator {
Marc Treib 2016/03/18 11:28:54 "RequestCreator" isn't really appropriate here, no
atanasova 2016/03/21 10:42:25 Done.
+ public:
+ typedef base::Callback<void(bool)> SuccessCallback;
+
+ virtual ~ReportUrlRequestCreator() {}
+
+ // Creates a report url request for |url| and calls |callback| with the
+ // result (whether reporting the url was successful).
+ virtual void CreateReportUrlRequest(const GURL& url,
+ const SuccessCallback& callback) = 0;
+};
+
+#endif // CHROME_BROWSER_SUPERVISED_USER_REPORT_URL_REQUEST_CREATOR_H_

Powered by Google App Engine
This is Rietveld 408576698