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

Unified Diff: content/common/service_worker/service_worker_provider.mojom

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/common/service_worker/service_worker_provider.mojom
diff --git a/content/common/service_worker/service_worker_provider.mojom b/content/common/service_worker/service_worker_provider.mojom
index 4016e4266254d6403c1afc96329018930ed3b932..b01b1cf20b407c65541d22ea752cd01084c0dfb3 100644
--- a/content/common/service_worker/service_worker_provider.mojom
+++ b/content/common/service_worker/service_worker_provider.mojom
@@ -7,6 +7,20 @@ module content.mojom;
import "content/common/service_worker/service_worker_provider_interfaces.mojom";
import "content/common/service_worker/service_worker_types.mojom";
+// A container object carried from the browser to the renderer process.
+// This contains the params for the constructor of ServiceWorkerNetworkProvider
+// used for starting a service worker.
+struct ServiceWorkerProviderInfoForStartWorker {
+ int32 provider_id;
+ // |registration| and |attributes| are information about the service worker's
+ // registration used to populate ServiceWorkerGlobalScope#registration.
+ ServiceWorkerRegistrationObjectInfo registration;
+ ServiceWorkerVersionAttributes attributes;
+
+ associated ServiceWorkerProviderHost host_ptr_info;
+ associated ServiceWorkerProvider& client_request;
+};
+
// A container object carried from the renderer to the browser process.
// This contains the parameters to specify the provider on the browser side.
// See also comments in
« no previous file with comments | « content/common/service_worker/service_worker.mojom ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698