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 a2ace940c6361a298c66b92a0eb8387033ae633b..48a6722df666794f519b41444c6abdfe462196cb 100644 |
--- a/content/common/service_worker/service_worker_types.h |
+++ b/content/common/service_worker/service_worker_types.h |
@@ -219,10 +219,21 @@ struct CONTENT_EXPORT ServiceWorkerObjectInfo { |
int64_t version_id; |
}; |
+struct CONTENT_EXPORT ServiceWorkerRegistrationOptions { |
+ enum class UseCache { DontUse, Use, Last = Use }; |
+ |
+ ServiceWorkerRegistrationOptions(); |
+ // Initialize |scope| with the specified value and the rest with defaults |
+ explicit ServiceWorkerRegistrationOptions(const GURL& scope); |
+ ServiceWorkerRegistrationOptions(const GURL& scope, UseCache use_cache); |
+ GURL scope; |
+ UseCache use_cache; |
+}; |
+ |
struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo { |
ServiceWorkerRegistrationObjectInfo(); |
int handle_id; |
- GURL scope; |
+ ServiceWorkerRegistrationOptions options; |
int64_t registration_id; |
}; |