Index: content/child/service_worker/service_worker_network_provider.h |
diff --git a/content/child/service_worker/service_worker_network_provider.h b/content/child/service_worker/service_worker_network_provider.h |
index 113d260f5d4adfee990e228855e6517b71542bf5..cd10b62a10b1abbadc651866a8b74d8a4f514b27 100644 |
--- a/content/child/service_worker/service_worker_network_provider.h |
+++ b/content/child/service_worker/service_worker_network_provider.h |
@@ -15,6 +15,7 @@ |
#include "base/supports_user_data.h" |
#include "content/common/content_export.h" |
#include "content/common/service_worker/service_worker.mojom.h" |
+#include "content/common/service_worker/service_worker_provider.mojom.h" |
namespace blink { |
class WebLocalFrame; |
@@ -60,6 +61,8 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider { |
ServiceWorkerNetworkProvider(int route_id, |
ServiceWorkerProviderType type, |
bool is_parent_frame_secure); |
+ explicit ServiceWorkerNetworkProvider( |
+ mojom::ServiceWorkerProviderClientInfoPtr info); |
ServiceWorkerNetworkProvider(); |
~ServiceWorkerNetworkProvider(); |
@@ -67,10 +70,9 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider { |
int provider_id() const { return provider_id_; } |
ServiceWorkerProviderContext* context() const { return context_.get(); } |
- // This method is called for a provider that's associated with a |
- // running service worker script. The version_id indicates which |
- // ServiceWorkerVersion should be used. |
- void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id); |
+ mojom::URLLoaderFactory* script_loader_factory() { |
+ return script_loader_factory_.get(); |
+ } |
bool IsControlledByServiceWorker() const; |
@@ -79,6 +81,8 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider { |
scoped_refptr<ServiceWorkerProviderContext> context_; |
mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; |
mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_; |
+ mojom::URLLoaderFactoryAssociatedPtr script_loader_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); |
}; |