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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 resource_request->has_user_gesture = request.hasUserGesture(); | 596 resource_request->has_user_gesture = request.hasUserGesture(); |
597 resource_request->enable_load_timing = true; | 597 resource_request->enable_load_timing = true; |
598 resource_request->enable_upload_progress = request.reportUploadProgress(); | 598 resource_request->enable_upload_progress = request.reportUploadProgress(); |
599 if (request.getRequestContext() == | 599 if (request.getRequestContext() == |
600 WebURLRequest::RequestContextXMLHttpRequest && | 600 WebURLRequest::RequestContextXMLHttpRequest && |
601 (url.has_username() || url.has_password())) { | 601 (url.has_username() || url.has_password())) { |
602 resource_request->do_not_prompt_for_login = true; | 602 resource_request->do_not_prompt_for_login = true; |
603 } | 603 } |
604 resource_request->report_raw_headers = request.reportRawHeaders(); | 604 resource_request->report_raw_headers = request.reportRawHeaders(); |
605 resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState()); | 605 resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState()); |
| 606 resource_request->insecure_request_policy = |
| 607 request.getInsecureRequestPolicy(); |
606 | 608 |
607 // PlzNavigate: during navigation, the renderer should request a stream which | 609 // PlzNavigate: during navigation, the renderer should request a stream which |
608 // contains the body of the response. The network request has already been | 610 // contains the body of the response. The network request has already been |
609 // made by the browser. | 611 // made by the browser. |
610 if (stream_override_.get()) { | 612 if (stream_override_.get()) { |
611 CHECK(IsBrowserSideNavigationEnabled()); | 613 CHECK(IsBrowserSideNavigationEnabled()); |
612 DCHECK(!sync_load_response); | 614 DCHECK(!sync_load_response); |
613 DCHECK_NE(WebURLRequest::FrameTypeNone, request.getFrameType()); | 615 DCHECK_NE(WebURLRequest::FrameTypeNone, request.getFrameType()); |
614 resource_request->resource_body_stream_url = stream_override_->stream_url; | 616 resource_request->resource_body_stream_url = stream_override_->stream_url; |
615 } | 617 } |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 int intra_priority_value) { | 1261 int intra_priority_value) { |
1260 context_->DidChangePriority(new_priority, intra_priority_value); | 1262 context_->DidChangePriority(new_priority, intra_priority_value); |
1261 } | 1263 } |
1262 | 1264 |
1263 void WebURLLoaderImpl::setLoadingTaskRunner( | 1265 void WebURLLoaderImpl::setLoadingTaskRunner( |
1264 base::SingleThreadTaskRunner* loading_task_runner) { | 1266 base::SingleThreadTaskRunner* loading_task_runner) { |
1265 context_->SetTaskRunner(loading_task_runner); | 1267 context_->SetTaskRunner(loading_task_runner); |
1266 } | 1268 } |
1267 | 1269 |
1268 } // namespace content | 1270 } // namespace content |
OLD | NEW |