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

Unified Diff: content/browser/loader/url_loader_factory_impl.cc

Issue 2449933003: Use Associated interfaces for mojo-loading (Closed)
Patch Set: fix Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/url_loader_factory_impl.cc
diff --git a/content/browser/loader/url_loader_factory_impl.cc b/content/browser/loader/url_loader_factory_impl.cc
index 4839af1763072dad570ba05b6aad8480f50a9cf7..c510c147f2b67d484aa632ccb10f6bb88ba96ef5 100644
--- a/content/browser/loader/url_loader_factory_impl.cc
+++ b/content/browser/loader/url_loader_factory_impl.cc
@@ -45,13 +45,14 @@ URLLoaderFactoryImpl::~URLLoaderFactoryImpl() {
}
void URLLoaderFactoryImpl::CreateLoaderAndStart(
- mojom::URLLoaderRequest request,
+ mojom::URLLoaderAssociatedRequest request,
int32_t routing_id,
int32_t request_id,
const ResourceRequest& url_request,
- mojom::URLLoaderClientPtr client) {
+ mojom::URLLoaderClientAssociatedPtrInfo client_ptr_info) {
CreateLoaderAndStart(std::move(request), routing_id, request_id, url_request,
- std::move(client), resource_message_filter_.get());
+ std::move(client_ptr_info),
+ resource_message_filter_.get());
}
void URLLoaderFactoryImpl::SyncLoad(int32_t routing_id,
@@ -64,14 +65,17 @@ void URLLoaderFactoryImpl::SyncLoad(int32_t routing_id,
// static
void URLLoaderFactoryImpl::CreateLoaderAndStart(
- mojom::URLLoaderRequest request,
+ mojom::URLLoaderAssociatedRequest request,
int32_t routing_id,
int32_t request_id,
const ResourceRequest& url_request,
- mojom::URLLoaderClientPtr client,
+ mojom::URLLoaderClientAssociatedPtrInfo client_ptr_info,
ResourceMessageFilter* filter) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ mojom::URLLoaderClientAssociatedPtr client;
+ client.Bind(std::move(client_ptr_info));
+
ResourceDispatcherHostImpl* rdh = ResourceDispatcherHostImpl::Get();
rdh->OnRequestResourceWithMojo(routing_id, request_id, url_request,
std::move(request), std::move(client), filter);
« no previous file with comments | « content/browser/loader/url_loader_factory_impl.h ('k') | content/browser/loader/url_loader_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698