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; |
}; |