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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: add comment in service_worker_url_request_job.h Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 9f220861106242e97aa93d633380100cbd5c7824..a58c4fafc9604bb4acadf002a16235c964ff401c 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1156,7 +1156,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
new ServiceWorkerDispatcherHost(
- GetID(), message_port_message_filter_.get(), resource_context);
+ GetID(), message_port_message_filter_.get(), resource_context,
+ base::Bind(&RenderProcessHostImpl::CreateURLLoaderFactory,
+ weak_factory_.GetWeakPtr()));
service_worker_filter->Init(
storage_partition_impl_->GetServiceWorkerContext());
AddFilter(service_worker_filter.get());
@@ -3000,4 +3002,9 @@ void RenderProcessHostImpl::OnMojoError(int render_process_id,
bad_message::RPH_MOJO_PROCESS_ERROR);
}
+void RenderProcessHostImpl::CreateURLLoaderFactory(
+ mojo::InterfaceRequest<mojom::URLLoaderFactory> request) {
+ URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request));
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698