| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 542 |
| 543 // TODO(darin): We lack sufficient information to construct the actual | 543 // TODO(darin): We lack sufficient information to construct the actual |
| 544 // request that resulted from the redirect. | 544 // request that resulted from the redirect. |
| 545 WebURLRequest new_request(redirect_info.new_url); | 545 WebURLRequest new_request(redirect_info.new_url); |
| 546 new_request.setFirstPartyForCookies( | 546 new_request.setFirstPartyForCookies( |
| 547 redirect_info.new_first_party_for_cookies); | 547 redirect_info.new_first_party_for_cookies); |
| 548 new_request.setDownloadToFile(request_.downloadToFile()); | 548 new_request.setDownloadToFile(request_.downloadToFile()); |
| 549 new_request.setUseStreamOnResponse(request_.useStreamOnResponse()); | 549 new_request.setUseStreamOnResponse(request_.useStreamOnResponse()); |
| 550 new_request.setRequestContext(request_.requestContext()); | 550 new_request.setRequestContext(request_.requestContext()); |
| 551 new_request.setFrameType(request_.frameType()); | 551 new_request.setFrameType(request_.frameType()); |
| 552 new_request.setSkipServiceWorker(request_.skipServiceWorker()); | 552 new_request.setSkipServiceWorker(!info.was_fetched_via_service_worker); |
| 553 new_request.setShouldResetAppCache(request_.shouldResetAppCache()); | 553 new_request.setShouldResetAppCache(request_.shouldResetAppCache()); |
| 554 new_request.setFetchRequestMode(request_.fetchRequestMode()); | 554 new_request.setFetchRequestMode(request_.fetchRequestMode()); |
| 555 new_request.setFetchCredentialsMode(request_.fetchCredentialsMode()); | 555 new_request.setFetchCredentialsMode(request_.fetchCredentialsMode()); |
| 556 | 556 |
| 557 new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer), | 557 new_request.setHTTPReferrer(WebString::fromUTF8(redirect_info.new_referrer), |
| 558 referrer_policy_); | 558 referrer_policy_); |
| 559 | 559 |
| 560 std::string old_method = request_.httpMethod().utf8(); | 560 std::string old_method = request_.httpMethod().utf8(); |
| 561 new_request.setHTTPMethod(WebString::fromUTF8(redirect_info.new_method)); | 561 new_request.setHTTPMethod(WebString::fromUTF8(redirect_info.new_method)); |
| 562 if (redirect_info.new_method == old_method) | 562 if (redirect_info.new_method == old_method) |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 int intra_priority_value) { | 1062 int intra_priority_value) { |
| 1063 context_->DidChangePriority(new_priority, intra_priority_value); | 1063 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1066 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
| 1067 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1067 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
| 1068 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1068 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 } // namespace content | 1071 } // namespace content |
| OLD | NEW |