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

Unified Diff: net/reporting/reporting_delegate.h

Issue 2689953004: Reporting: Implement header parser. (Closed)
Patch Set: Finish DelegateImpl implementation Created 3 years, 10 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: 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_

Powered by Google App Engine
This is Rietveld 408576698