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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix tests Created 3 years, 9 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 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;
};

Powered by Google App Engine
This is Rietveld 408576698