OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/common/resource_request_completion_status.h" | 5 #include "content/public/common/resource_request_completion_status.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
11 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus() {} | 11 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus() {} |
12 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus( | 12 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus( |
13 const ResourceRequestCompletionStatus& status) = default; | 13 const ResourceRequestCompletionStatus& status) = default; |
14 | 14 |
15 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus(int64_t length) | 15 ResourceRequestCompletionStatus::ResourceRequestCompletionStatus(int64_t length) |
16 : error_code(net::OK), | 16 : error_code(net::OK), |
17 completion_time(base::TimeTicks::Now()), | 17 completion_time(base::TimeTicks::Now()), |
18 encoded_data_length(length), | 18 encoded_data_length(length), |
19 encoded_body_length(length) {} | 19 encoded_body_length(length) {} |
20 | 20 |
21 ResourceRequestCompletionStatus::~ResourceRequestCompletionStatus() {} | 21 ResourceRequestCompletionStatus::~ResourceRequestCompletionStatus() {} |
22 | 22 |
23 } // namespace content | 23 } // namespace content |
OLD | NEW |