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

Unified Diff: content/child/service_worker/service_worker_network_provider.h

Issue 2779763004: Create ServiceWorkerProviderHost before starting worker (Closed)
Patch Set: Pass the param of BindWithProviderInfo by value instead of pointer Created 3 years, 6 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/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..1ca07d963203f9d871b71483ccbb1729407b1f69 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;
@@ -57,9 +58,13 @@ 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();
@@ -67,11 +72,6 @@ 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:

Powered by Google App Engine
This is Rietveld 408576698