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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 resource_request->enable_upload_progress = request.ReportUploadProgress(); | 592 resource_request->enable_upload_progress = request.ReportUploadProgress(); |
593 if (request.GetRequestContext() == | 593 if (request.GetRequestContext() == |
594 WebURLRequest::kRequestContextXMLHttpRequest && | 594 WebURLRequest::kRequestContextXMLHttpRequest && |
595 (url.has_username() || url.has_password())) { | 595 (url.has_username() || url.has_password())) { |
596 resource_request->do_not_prompt_for_login = true; | 596 resource_request->do_not_prompt_for_login = true; |
597 } | 597 } |
598 resource_request->report_raw_headers = request.ReportRawHeaders(); | 598 resource_request->report_raw_headers = request.ReportRawHeaders(); |
599 resource_request->previews_state = | 599 resource_request->previews_state = |
600 static_cast<PreviewsState>(request.GetPreviewsState()); | 600 static_cast<PreviewsState>(request.GetPreviewsState()); |
601 | 601 |
| 602 resource_request->devtools_agent_host_id = |
| 603 request.DevToolsAgentHostId().Utf8(); |
| 604 resource_request->devtools_request_id = request.DevToolsRequestId().Utf8(); |
| 605 |
602 // PlzNavigate: during navigation, the renderer should request a stream which | 606 // PlzNavigate: during navigation, the renderer should request a stream which |
603 // contains the body of the response. The network request has already been | 607 // contains the body of the response. The network request has already been |
604 // made by the browser. | 608 // made by the browser. |
605 if (stream_override_.get()) { | 609 if (stream_override_.get()) { |
606 CHECK(IsBrowserSideNavigationEnabled()); | 610 CHECK(IsBrowserSideNavigationEnabled()); |
607 DCHECK(!sync_load_response); | 611 DCHECK(!sync_load_response); |
608 DCHECK_NE(WebURLRequest::kFrameTypeNone, request.GetFrameType()); | 612 DCHECK_NE(WebURLRequest::kFrameTypeNone, request.GetFrameType()); |
609 resource_request->resource_body_stream_url = stream_override_->stream_url; | 613 resource_request->resource_body_stream_url = stream_override_->stream_url; |
610 } | 614 } |
611 | 615 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 int intra_priority_value) { | 1261 int intra_priority_value) { |
1258 context_->DidChangePriority(new_priority, intra_priority_value); | 1262 context_->DidChangePriority(new_priority, intra_priority_value); |
1259 } | 1263 } |
1260 | 1264 |
1261 void WebURLLoaderImpl::SetLoadingTaskRunner( | 1265 void WebURLLoaderImpl::SetLoadingTaskRunner( |
1262 base::SingleThreadTaskRunner* loading_task_runner) { | 1266 base::SingleThreadTaskRunner* loading_task_runner) { |
1263 context_->SetTaskRunner(loading_task_runner); | 1267 context_->SetTaskRunner(loading_task_runner); |
1264 } | 1268 } |
1265 | 1269 |
1266 } // namespace content | 1270 } // namespace content |
OLD | NEW |