OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/public/common/resource_devtools_info.h" | 5 #include "content/public/common/resource_devtools_info.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 ResourceDevToolsInfo::ResourceDevToolsInfo() | 9 ResourceDevToolsInfo::ResourceDevToolsInfo() |
10 : http_status_code(0) { | 10 : http_status_code(0) { |
11 } | 11 } |
12 | 12 |
13 ResourceDevToolsInfo::~ResourceDevToolsInfo() { | 13 ResourceDevToolsInfo::~ResourceDevToolsInfo() { |
14 } | 14 } |
15 | 15 |
| 16 scoped_refptr<ResourceDevToolsInfo> ResourceDevToolsInfo::DeepCopy() const { |
| 17 scoped_refptr<ResourceDevToolsInfo> new_info = new ResourceDevToolsInfo; |
| 18 new_info->http_status_code = http_status_code; |
| 19 new_info->http_status_text = http_status_text; |
| 20 new_info->request_headers = request_headers; |
| 21 new_info->response_headers = response_headers; |
| 22 new_info->request_headers_text = request_headers_text; |
| 23 new_info->response_headers_text = response_headers_text; |
| 24 return new_info; |
| 25 } |
| 26 |
16 } // namespace content | 27 } // namespace content |
OLD | NEW |