| 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 #include "net/reporting/reporting_report.h" | 5 #include "net/reporting/reporting_report.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> |
| 9 | 10 |
| 10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 11 #include "base/values.h" | 12 #include "base/values.h" |
| 12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 ReportingReport::ReportingReport(const GURL& url, | 17 ReportingReport::ReportingReport(const GURL& url, |
| 17 const std::string& group, | 18 const std::string& group, |
| 18 const std::string& type, | 19 const std::string& type, |
| 19 std::unique_ptr<const base::Value> body, | 20 std::unique_ptr<const base::Value> body, |
| 20 base::TimeTicks queued, | 21 base::TimeTicks queued, |
| 21 int attempts) | 22 int attempts) |
| 22 : url(url), | 23 : url(url), |
| 23 group(group), | 24 group(group), |
| 24 type(type), | 25 type(type), |
| 25 body(std::move(body)), | 26 body(std::move(body)), |
| 26 queued(queued), | 27 queued(queued), |
| 27 attempts(attempts) {} | 28 attempts(attempts) {} |
| 28 | 29 |
| 29 ReportingReport::~ReportingReport() {} | 30 ReportingReport::~ReportingReport() {} |
| 30 | 31 |
| 31 } // namespace net | 32 } // namespace net |
| OLD | NEW |