| 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/child/web_url_loader_impl.h" | 5 #include "content/child/web_url_loader_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 (info.service_worker_ready_time - kNullTicks).InSecondsF()); | 1091 (info.service_worker_ready_time - kNullTicks).InSecondsF()); |
| 1092 response->setLoadTiming(timing); | 1092 response->setLoadTiming(timing); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 if (info.devtools_info.get()) { | 1095 if (info.devtools_info.get()) { |
| 1096 WebHTTPLoadInfo load_info; | 1096 WebHTTPLoadInfo load_info; |
| 1097 | 1097 |
| 1098 load_info.setHTTPStatusCode(info.devtools_info->http_status_code); | 1098 load_info.setHTTPStatusCode(info.devtools_info->http_status_code); |
| 1099 load_info.setHTTPStatusText(WebString::fromLatin1( | 1099 load_info.setHTTPStatusText(WebString::fromLatin1( |
| 1100 info.devtools_info->http_status_text)); | 1100 info.devtools_info->http_status_text)); |
| 1101 load_info.setEncodedDataLength(info.encoded_data_length); | |
| 1102 | 1101 |
| 1103 load_info.setRequestHeadersText(WebString::fromLatin1( | 1102 load_info.setRequestHeadersText(WebString::fromLatin1( |
| 1104 info.devtools_info->request_headers_text)); | 1103 info.devtools_info->request_headers_text)); |
| 1105 load_info.setResponseHeadersText(WebString::fromLatin1( | 1104 load_info.setResponseHeadersText(WebString::fromLatin1( |
| 1106 info.devtools_info->response_headers_text)); | 1105 info.devtools_info->response_headers_text)); |
| 1107 const HeadersVector& request_headers = info.devtools_info->request_headers; | 1106 const HeadersVector& request_headers = info.devtools_info->request_headers; |
| 1108 for (HeadersVector::const_iterator it = request_headers.begin(); | 1107 for (HeadersVector::const_iterator it = request_headers.begin(); |
| 1109 it != request_headers.end(); ++it) { | 1108 it != request_headers.end(); ++it) { |
| 1110 load_info.addRequestHeader(WebString::fromLatin1(it->first), | 1109 load_info.addRequestHeader(WebString::fromLatin1(it->first), |
| 1111 WebString::fromLatin1(it->second)); | 1110 WebString::fromLatin1(it->second)); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 int intra_priority_value) { | 1248 int intra_priority_value) { |
| 1250 context_->DidChangePriority(new_priority, intra_priority_value); | 1249 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1251 } | 1250 } |
| 1252 | 1251 |
| 1253 void WebURLLoaderImpl::setLoadingTaskRunner( | 1252 void WebURLLoaderImpl::setLoadingTaskRunner( |
| 1254 base::SingleThreadTaskRunner* loading_task_runner) { | 1253 base::SingleThreadTaskRunner* loading_task_runner) { |
| 1255 context_->SetTaskRunner(loading_task_runner); | 1254 context_->SetTaskRunner(loading_task_runner); |
| 1256 } | 1255 } |
| 1257 | 1256 |
| 1258 } // namespace content | 1257 } // namespace content |
| OLD | NEW |