| 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 <openssl/ssl.h> | 7 #include <openssl/ssl.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 resource_request->has_user_gesture = request.hasUserGesture(); | 583 resource_request->has_user_gesture = request.hasUserGesture(); |
| 584 resource_request->enable_load_timing = true; | 584 resource_request->enable_load_timing = true; |
| 585 resource_request->enable_upload_progress = request.reportUploadProgress(); | 585 resource_request->enable_upload_progress = request.reportUploadProgress(); |
| 586 if (request.getRequestContext() == | 586 if (request.getRequestContext() == |
| 587 WebURLRequest::RequestContextXMLHttpRequest && | 587 WebURLRequest::RequestContextXMLHttpRequest && |
| 588 (url.has_username() || url.has_password())) { | 588 (url.has_username() || url.has_password())) { |
| 589 resource_request->do_not_prompt_for_login = true; | 589 resource_request->do_not_prompt_for_login = true; |
| 590 } | 590 } |
| 591 resource_request->report_raw_headers = request.reportRawHeaders(); | 591 resource_request->report_raw_headers = request.reportRawHeaders(); |
| 592 resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState()); | 592 resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState()); |
| 593 resource_request->insecure_request_policy = request.insecureRequestPolicy(); |
| 593 | 594 |
| 594 // PlzNavigate: during navigation, the renderer should request a stream which | 595 // PlzNavigate: during navigation, the renderer should request a stream which |
| 595 // contains the body of the response. The network request has already been | 596 // contains the body of the response. The network request has already been |
| 596 // made by the browser. | 597 // made by the browser. |
| 597 if (stream_override_.get()) { | 598 if (stream_override_.get()) { |
| 598 CHECK(IsBrowserSideNavigationEnabled()); | 599 CHECK(IsBrowserSideNavigationEnabled()); |
| 599 DCHECK(!sync_load_response); | 600 DCHECK(!sync_load_response); |
| 600 DCHECK_NE(WebURLRequest::FrameTypeNone, request.getFrameType()); | 601 DCHECK_NE(WebURLRequest::FrameTypeNone, request.getFrameType()); |
| 601 resource_request->resource_body_stream_url = stream_override_->stream_url; | 602 resource_request->resource_body_stream_url = stream_override_->stream_url; |
| 602 } | 603 } |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 int intra_priority_value) { | 1241 int intra_priority_value) { |
| 1241 context_->DidChangePriority(new_priority, intra_priority_value); | 1242 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1242 } | 1243 } |
| 1243 | 1244 |
| 1244 void WebURLLoaderImpl::setLoadingTaskRunner( | 1245 void WebURLLoaderImpl::setLoadingTaskRunner( |
| 1245 blink::WebTaskRunner* loading_task_runner) { | 1246 blink::WebTaskRunner* loading_task_runner) { |
| 1246 context_->SetTaskRunner(loading_task_runner->toSingleThreadTaskRunner()); | 1247 context_->SetTaskRunner(loading_task_runner->toSingleThreadTaskRunner()); |
| 1247 } | 1248 } |
| 1248 | 1249 |
| 1249 } // namespace content | 1250 } // namespace content |
| OLD | NEW |