Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: content/child/resource_dispatcher.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 loading_task_runner); 724 loading_task_runner);
725 } 725 }
726 726
727 if (ipc_type == blink::WebURLRequest::LoadingIPCType::Mojo) { 727 if (ipc_type == blink::WebURLRequest::LoadingIPCType::Mojo) {
728 std::unique_ptr<URLLoaderClientImpl> client( 728 std::unique_ptr<URLLoaderClientImpl> client(
729 new URLLoaderClientImpl(request_id, this, main_thread_task_runner_)); 729 new URLLoaderClientImpl(request_id, this, main_thread_task_runner_));
730 mojom::URLLoaderAssociatedPtr url_loader; 730 mojom::URLLoaderAssociatedPtr url_loader;
731 mojom::URLLoaderClientAssociatedPtrInfo client_ptr_info; 731 mojom::URLLoaderClientAssociatedPtrInfo client_ptr_info;
732 client->Bind(&client_ptr_info, associated_group); 732 client->Bind(&client_ptr_info, associated_group);
733 url_loader_factory->CreateLoaderAndStart( 733 url_loader_factory->CreateLoaderAndStart(
734 GetProxy(&url_loader, associated_group), routing_id, request_id, 734 MakeRequest(&url_loader, associated_group), routing_id, request_id,
735 *request, std::move(client_ptr_info)); 735 *request, std::move(client_ptr_info));
736 pending_requests_[request_id]->url_loader = std::move(url_loader); 736 pending_requests_[request_id]->url_loader = std::move(url_loader);
737 pending_requests_[request_id]->url_loader_client = std::move(client); 737 pending_requests_[request_id]->url_loader_client = std::move(client);
738 } else { 738 } else {
739 message_sender_->Send( 739 message_sender_->Send(
740 new ResourceHostMsg_RequestResource(routing_id, request_id, *request)); 740 new ResourceHostMsg_RequestResource(routing_id, request_id, *request));
741 } 741 }
742 742
743 return request_id; 743 return request_id;
744 } 744 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 delete message; 877 delete message;
878 } 878 }
879 } 879 }
880 880
881 void ResourceDispatcher::SetResourceSchedulingFilter( 881 void ResourceDispatcher::SetResourceSchedulingFilter(
882 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) { 882 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter) {
883 resource_scheduling_filter_ = resource_scheduling_filter; 883 resource_scheduling_filter_ = resource_scheduling_filter;
884 } 884 }
885 885
886 } // namespace content 886 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/common/associated_interface_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698