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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 2968123002: Introduce ServiceWorkerRegistrationOptions struct for service worker options (Closed)
Patch Set: address more comments Created 3 years, 5 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_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index a3f10c418d8177e3322f1f98eade3478c753b917..e704418dbd09433494019b08d6e6898c6a673f95 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -221,10 +221,19 @@ struct CONTENT_EXPORT ServiceWorkerObjectInfo {
int64_t version_id;
};
+// Represents options for register():
+// https://w3c.github.io/ServiceWorker/#dictdef-registrationoptions
+struct CONTENT_EXPORT ServiceWorkerRegistrationOptions {
+ ServiceWorkerRegistrationOptions() = default;
+ explicit ServiceWorkerRegistrationOptions(const GURL& scope);
+ GURL scope;
+ // TODO(yuryu): Other values will be added as they are supported later.
+};
+
struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo {
ServiceWorkerRegistrationObjectInfo();
int handle_id;
- GURL scope;
+ ServiceWorkerRegistrationOptions options;
int64_t registration_id;
};
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/common/service_worker/service_worker_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698