| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 resource_dispatcher_->DidChangePriority( | 411 resource_dispatcher_->DidChangePriority( |
| 412 request_id_, | 412 request_id_, |
| 413 ConvertWebKitPriorityToNetPriority(new_priority), | 413 ConvertWebKitPriorityToNetPriority(new_priority), |
| 414 intra_priority_value); | 414 intra_priority_value); |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 bool WebURLLoaderImpl::Context::AttachThreadedDataReceiver( | 418 bool WebURLLoaderImpl::Context::AttachThreadedDataReceiver( |
| 419 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 419 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
| 420 if (request_id_ != -1) { | 420 if (request_id_ != -1) { |
| 421 resource_dispatcher_->AttachThreadedDataReceiver( | 421 return resource_dispatcher_->AttachThreadedDataReceiver( |
| 422 request_id_, threaded_data_receiver); | 422 request_id_, threaded_data_receiver); |
| 423 } | 423 } |
| 424 | 424 |
| 425 return false; | 425 return false; |
| 426 } | 426 } |
| 427 | 427 |
| 428 void WebURLLoaderImpl::Context::Start(const WebURLRequest& request, | 428 void WebURLLoaderImpl::Context::Start(const WebURLRequest& request, |
| 429 SyncLoadResponse* sync_load_response) { | 429 SyncLoadResponse* sync_load_response) { |
| 430 DCHECK(request_id_ == -1); | 430 DCHECK(request_id_ == -1); |
| 431 request_ = request; // Save the request. | 431 request_ = request; // Save the request. |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 int intra_priority_value) { | 1138 int intra_priority_value) { |
| 1139 context_->DidChangePriority(new_priority, intra_priority_value); | 1139 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1142 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
| 1143 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1143 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
| 1144 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1144 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 } // namespace content | 1147 } // namespace content |
| OLD | NEW |