| 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 info.is_in_cache_storage | 1080 info.is_in_cache_storage |
| 1081 ? blink::WebString::fromUTF8(info.cache_storage_cache_name) | 1081 ? blink::WebString::fromUTF8(info.cache_storage_cache_name) |
| 1082 : blink::WebString()); | 1082 : blink::WebString()); |
| 1083 blink::WebVector<blink::WebString> cors_exposed_header_names( | 1083 blink::WebVector<blink::WebString> cors_exposed_header_names( |
| 1084 info.cors_exposed_header_names.size()); | 1084 info.cors_exposed_header_names.size()); |
| 1085 std::transform( | 1085 std::transform( |
| 1086 info.cors_exposed_header_names.begin(), | 1086 info.cors_exposed_header_names.begin(), |
| 1087 info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(), | 1087 info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(), |
| 1088 [](const std::string& h) { return blink::WebString::fromLatin1(h); }); | 1088 [](const std::string& h) { return blink::WebString::fromLatin1(h); }); |
| 1089 response->setCorsExposedHeaderNames(cors_exposed_header_names); | 1089 response->setCorsExposedHeaderNames(cors_exposed_header_names); |
| 1090 response->setDidServiceWorkerNavigationPreload( |
| 1091 info.did_service_worker_navigation_preload); |
| 1090 response->setEncodedDataLength(info.encoded_data_length); | 1092 response->setEncodedDataLength(info.encoded_data_length); |
| 1091 | 1093 |
| 1092 SetSecurityStyleAndDetails(url, info, response, report_security_info); | 1094 SetSecurityStyleAndDetails(url, info, response, report_security_info); |
| 1093 | 1095 |
| 1094 WebURLResponseExtraDataImpl* extra_data = | 1096 WebURLResponseExtraDataImpl* extra_data = |
| 1095 new WebURLResponseExtraDataImpl(info.alpn_negotiated_protocol); | 1097 new WebURLResponseExtraDataImpl(info.alpn_negotiated_protocol); |
| 1096 response->setExtraData(extra_data); | 1098 response->setExtraData(extra_data); |
| 1097 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); | 1099 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); |
| 1098 extra_data->set_was_alpn_negotiated(info.was_alpn_negotiated); | 1100 extra_data->set_was_alpn_negotiated(info.was_alpn_negotiated); |
| 1099 extra_data->set_was_alternate_protocol_available( | 1101 extra_data->set_was_alternate_protocol_available( |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 int intra_priority_value) { | 1274 int intra_priority_value) { |
| 1273 context_->DidChangePriority(new_priority, intra_priority_value); | 1275 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1274 } | 1276 } |
| 1275 | 1277 |
| 1276 void WebURLLoaderImpl::setLoadingTaskRunner( | 1278 void WebURLLoaderImpl::setLoadingTaskRunner( |
| 1277 base::SingleThreadTaskRunner* loading_task_runner) { | 1279 base::SingleThreadTaskRunner* loading_task_runner) { |
| 1278 context_->SetTaskRunner(loading_task_runner); | 1280 context_->SetTaskRunner(loading_task_runner); |
| 1279 } | 1281 } |
| 1280 | 1282 |
| 1281 } // namespace content | 1283 } // namespace content |
| OLD | NEW |