Index: components/reporting/core/browser/reporting_report.h |
diff --git a/components/reporting/core/browser/reporting_report.h b/components/reporting/core/browser/reporting_report.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..125adb887b46551b5ab094f8e838cdbcc77fccbc |
--- /dev/null |
+++ b/components/reporting/core/browser/reporting_report.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2016 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 COMPONENTS_REPORTING_CORE_BROWSER_REPORTING_REPORT_H_ |
+#define COMPONENTS_REPORTING_CORE_BROWSER_REPORTING_REPORT_H_ |
+ |
+#include "base/time/time.h" |
+#include "base/values.h" |
+#include "components/reporting/core/common/reporting_export.h" |
+#include "url/gurl.h" |
+ |
+namespace reporting { |
+ |
+// Section 2.3 |
+struct REPORTING_EXPORT ReportingReport { |
+ public: |
+ ReportingReport(); |
+ ~ReportingReport(); |
+ |
+ std::string ToString() const; |
+ |
+ std::unique_ptr<base::Value> body; |
+ GURL url; |
+ GURL origin; |
Randy Smith (Not in Mondays)
2016/10/21 20:15:11
There's a lack of context (well, other than the sp
Julia Tuttle
2016/11/02 20:44:39
Hmm. origin is basically always guaranteed to be u
|
+ std::string group; |
+ std::string type; |
+ base::TimeTicks timestamp; |
+ int attempts; |
+}; |
+ |
+} // namespace reporting |
+ |
+#endif // COMPONENTS_REPORTING_CORE_BROWSER_REPORTING_REPORT_H_ |