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