Index: content/browser/service_worker/service_worker_dispatcher_host.h |
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h |
index 386f0a92ada69afab4eda20eeb282ff96faa3972..71cbd0864898886bddac7b641cbf52e07fe514e3 100644 |
--- a/content/browser/service_worker/service_worker_dispatcher_host.h |
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h |
@@ -25,7 +25,7 @@ struct EmbeddedWorkerHostMsg_ReportConsoleMessage_Params; |
namespace url { |
class Origin; |
-} |
+} // namespace url |
namespace content { |
@@ -50,7 +50,8 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost |
ServiceWorkerDispatcherHost( |
int render_process_id, |
MessagePortMessageFilter* message_port_message_filter, |
- ResourceContext* resource_context); |
+ ResourceContext* resource_context, |
+ const MojoURLLoaderFactoryGetter& url_loader_factory_getter); |
void Init(ServiceWorkerContextWrapper* context_wrapper); |
@@ -85,6 +86,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost |
return message_port_message_filter_; |
} |
+ MojoURLLoaderFactoryGetter url_loader_factory_getter() const { |
+ return url_loader_factory_getter_; |
+ } |
+ |
protected: |
~ServiceWorkerDispatcherHost() override; |
@@ -249,6 +254,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost |
const int render_process_id_; |
MessagePortMessageFilter* const message_port_message_filter_; |
ResourceContext* resource_context_; |
+ const MojoURLLoaderFactoryGetter url_loader_factory_getter_; |
scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; |
IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; |