| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 GetFetchCredentialsModeForWebURLRequest(request); | 543 GetFetchCredentialsModeForWebURLRequest(request); |
| 544 request_info.fetch_redirect_mode = | 544 request_info.fetch_redirect_mode = |
| 545 GetFetchRedirectModeForWebURLRequest(request); | 545 GetFetchRedirectModeForWebURLRequest(request); |
| 546 request_info.fetch_request_context_type = | 546 request_info.fetch_request_context_type = |
| 547 GetRequestContextTypeForWebURLRequest(request); | 547 GetRequestContextTypeForWebURLRequest(request); |
| 548 request_info.fetch_frame_type = | 548 request_info.fetch_frame_type = |
| 549 GetRequestContextFrameTypeForWebURLRequest(request); | 549 GetRequestContextFrameTypeForWebURLRequest(request); |
| 550 request_info.extra_data = request.getExtraData(); | 550 request_info.extra_data = request.getExtraData(); |
| 551 request_info.report_raw_headers = request.reportRawHeaders(); | 551 request_info.report_raw_headers = request.reportRawHeaders(); |
| 552 request_info.loading_web_task_runner.reset(web_task_runner_->clone()); | 552 request_info.loading_web_task_runner.reset(web_task_runner_->clone()); |
| 553 request_info.lofi_state = static_cast<LoFiState>(request.getLoFiState()); |
| 553 | 554 |
| 554 scoped_refptr<ResourceRequestBodyImpl> request_body = | 555 scoped_refptr<ResourceRequestBodyImpl> request_body = |
| 555 GetRequestBodyForWebURLRequest(request).get(); | 556 GetRequestBodyForWebURLRequest(request).get(); |
| 556 | 557 |
| 557 // PlzNavigate: during navigation, the renderer should request a stream which | 558 // PlzNavigate: during navigation, the renderer should request a stream which |
| 558 // contains the body of the response. The network request has already been | 559 // contains the body of the response. The network request has already been |
| 559 // made by the browser. | 560 // made by the browser. |
| 560 if (stream_override_.get()) { | 561 if (stream_override_.get()) { |
| 561 CHECK(IsBrowserSideNavigationEnabled()); | 562 CHECK(IsBrowserSideNavigationEnabled()); |
| 562 DCHECK(!sync_load_response); | 563 DCHECK(!sync_load_response); |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 response->clearHTTPHeaderField(webStringName); | 1230 response->clearHTTPHeaderField(webStringName); |
| 1230 while (response_headers->EnumerateHeader(&iterator, name, &value)) { | 1231 while (response_headers->EnumerateHeader(&iterator, name, &value)) { |
| 1231 response->addHTTPHeaderField(webStringName, | 1232 response->addHTTPHeaderField(webStringName, |
| 1232 WebString::fromLatin1(value)); | 1233 WebString::fromLatin1(value)); |
| 1233 } | 1234 } |
| 1234 } | 1235 } |
| 1235 return true; | 1236 return true; |
| 1236 } | 1237 } |
| 1237 | 1238 |
| 1238 } // namespace content | 1239 } // namespace content |
| OLD | NEW |