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 1ca07d963203f9d871b71483ccbb1729407b1f69..113d260f5d4adfee990e228855e6517b71542bf5 100644 |
--- a/content/child/service_worker/service_worker_network_provider.h |
+++ b/content/child/service_worker/service_worker_network_provider.h |
@@ -15,7 +15,6 @@ |
#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; |
@@ -58,13 +57,9 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider { |
ServiceWorkerProviderType type, |
int browser_provider_id, |
bool is_parent_frame_secure); |
- // This is for service worker clients. |
ServiceWorkerNetworkProvider(int route_id, |
ServiceWorkerProviderType type, |
bool is_parent_frame_secure); |
- // This is for controllers. |
- explicit ServiceWorkerNetworkProvider( |
- mojom::ServiceWorkerProviderInfoForStartWorkerPtr info); |
ServiceWorkerNetworkProvider(); |
~ServiceWorkerNetworkProvider(); |
@@ -72,6 +67,11 @@ 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); |
+ |
bool IsControlledByServiceWorker() const; |
private: |