| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 WebURLResponse response; | 538 WebURLResponse response; |
| 539 response.initialize(); | 539 response.initialize(); |
| 540 PopulateURLResponse(request_.url(), info, &response); | 540 PopulateURLResponse(request_.url(), info, &response); |
| 541 | 541 |
| 542 // TODO(darin): We lack sufficient information to construct the actual | 542 // TODO(darin): We lack sufficient information to construct the actual |
| 543 // request that resulted from the redirect. | 543 // request that resulted from the redirect. |
| 544 WebURLRequest new_request(redirect_info.new_url); | 544 WebURLRequest new_request(redirect_info.new_url); |
| 545 new_request.setFirstPartyForCookies( | 545 new_request.setFirstPartyForCookies( |
| 546 redirect_info.new_first_party_for_cookies); | 546 redirect_info.new_first_party_for_cookies); |
| 547 new_request.setDownloadToFile(request_.downloadToFile()); | 547 new_request.setDownloadToFile(request_.downloadToFile()); |
| 548 new_request.setUseStreamOnResponse(request_.useStreamOnResponse()); |
| 548 new_request.setRequestContext(request_.requestContext()); | 549 new_request.setRequestContext(request_.requestContext()); |
| 549 new_request.setFrameType(request_.frameType()); | 550 new_request.setFrameType(request_.frameType()); |
| 550 new_request.setSkipServiceWorker(request_.skipServiceWorker()); | 551 new_request.setSkipServiceWorker(request_.skipServiceWorker()); |
| 551 new_request.setShouldResetAppCache(request_.shouldResetAppCache()); | 552 new_request.setShouldResetAppCache(request_.shouldResetAppCache()); |
| 552 new_request.setFetchRequestMode(request_.fetchRequestMode()); | 553 new_request.setFetchRequestMode(request_.fetchRequestMode()); |
| 553 new_request.setFetchCredentialsMode(request_.fetchCredentialsMode()); | 554 new_request.setFetchCredentialsMode(request_.fetchCredentialsMode()); |
| 554 | 555 |
| 555 new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer), | 556 new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer), |
| 556 referrer_policy_); | 557 referrer_policy_); |
| 557 | 558 |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 int intra_priority_value) { | 1118 int intra_priority_value) { |
| 1118 context_->DidChangePriority(new_priority, intra_priority_value); | 1119 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1119 } | 1120 } |
| 1120 | 1121 |
| 1121 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1122 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
| 1122 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1123 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
| 1123 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1124 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
| 1124 } | 1125 } |
| 1125 | 1126 |
| 1126 } // namespace content | 1127 } // namespace content |
| OLD | NEW |