| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_REPORTING_REPORTING_REPORT_H_ | 5 #ifndef NET_REPORTING_REPORTING_REPORT_H_ |
| 6 #define NET_REPORTING_REPORTING_REPORT_H_ | 6 #define NET_REPORTING_REPORTING_REPORT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 struct NET_EXPORT ReportingReport { | 22 struct NET_EXPORT ReportingReport { |
| 23 public: | 23 public: |
| 24 ReportingReport(const GURL& url, | 24 ReportingReport(const GURL& url, |
| 25 const std::string& group, | 25 const std::string& group, |
| 26 const std::string& type, | 26 const std::string& type, |
| 27 std::unique_ptr<const base::Value> body, | 27 std::unique_ptr<const base::Value> body, |
| 28 base::TimeTicks queued, | 28 base::TimeTicks queued, |
| 29 int attempts); | 29 int attempts); |
| 30 ~ReportingReport(); | 30 ~ReportingReport(); |
| 31 | 31 |
| 32 // The URL of the document that triggered the report. | 32 // The URL of the document that triggered the report. (Included in the |
| 33 // delivered report.) |
| 33 GURL url; | 34 GURL url; |
| 34 | 35 |
| 35 // The endpoint group that should be used to deliver the report. | 36 // The endpoint group that should be used to deliver the report. (Not included |
| 37 // in the delivered report.) |
| 36 std::string group; | 38 std::string group; |
| 37 | 39 |
| 38 // The type of the report. | 40 // The type of the report. (Included in the delivered report.) |
| 39 std::string type; | 41 std::string type; |
| 40 | 42 |
| 41 // The body of the report. | 43 // The body of the report. (Included in the delivered report.) |
| 42 std::unique_ptr<const base::Value> body; | 44 std::unique_ptr<const base::Value> body; |
| 43 | 45 |
| 44 // When the report was queued. | 46 // When the report was queued. (Included in the delivered report as an age |
| 47 // relative to the time of the delivery attempt.) |
| 45 base::TimeTicks queued; | 48 base::TimeTicks queued; |
| 46 | 49 |
| 47 // The number of delivery attempts made so far, not including an active | 50 // The number of delivery attempts made so far, not including an active |
| 48 // attempt. | 51 // attempt. (Not included in the delivered report.) |
| 49 int attempts = 0; | 52 int attempts = 0; |
| 50 | 53 |
| 51 private: | 54 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(ReportingReport); | 55 DISALLOW_COPY_AND_ASSIGN(ReportingReport); |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 } // namespace net | 58 } // namespace net |
| 56 | 59 |
| 57 #endif // NET_REPORTING_REPORTING_REPORT_H_ | 60 #endif // NET_REPORTING_REPORTING_REPORT_H_ |
| OLD | NEW |