Index: net/reporting/reporting_delegate.h |
diff --git a/net/reporting/reporting_delegate.h b/net/reporting/reporting_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f10a9f87d87147b3708020e0fe861a374179003 |
--- /dev/null |
+++ b/net/reporting/reporting_delegate.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 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 NET_REPORTING_REPORTING_DELEGATE_H_ |
+#define NET_REPORTING_REPORTING_DELEGATE_H_ |
+ |
+#include <string> |
+ |
+#include "base/values.h" |
+#include "url/gurl.h" |
+ |
+namespace net { |
+ |
+class NET_EXPORT ReportingDelegate { |
shivanisha
2017/03/01 21:51:56
Comment to describe the purpose of the class.
Julia Tuttle
2017/03/06 17:57:50
Done.
|
+ public: |
+ virtual ~ReportingDelegate() = default; |
+ |
+ virtual void OnReportGenerated(const GURL& url, |
shivanisha
2017/03/01 21:51:56
Comments for both the exposed API including a brie
Julia Tuttle
2017/03/06 17:57:50
Done.
|
+ const std::string& type, |
+ const std::string& group, |
+ std::unique_ptr<const base::Value> body) = 0; |
+ |
+ virtual void OnHeaderReceived(const GURL& url, const std::string& value) = 0; |
+ |
+ protected: |
+ ReportingDelegate() = default; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ReportingDelegate); |
+}; |
+ |
+} // namespace net |
+ |
+#endif // NET_REPORTING_REPORTING_DELEGATE_H_ |