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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.h

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/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_;

Powered by Google App Engine
This is Rietveld 408576698