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

Unified Diff: content/browser/service_worker/service_worker_registration.h

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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/browser/service_worker/service_worker_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index e78d181f5218915b0a2fa57d816570cc1c003a64..8ace88e581e04ce3b01f645a336a0f6e131d1a75 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -56,6 +56,13 @@ class CONTENT_EXPORT ServiceWorkerRegistration
int64_t id() const { return registration_id_; }
const GURL& pattern() const { return pattern_; }
+ blink::WebServiceWorkerUpdateViaCache update_via_cache() const {
+ return update_via_cache_;
+ }
+ void set_update_via_cache(
+ blink::WebServiceWorkerUpdateViaCache update_via_cache) {
+ update_via_cache_ = update_via_cache;
+ }
bool is_deleted() const { return is_deleted_; }
void set_is_deleted(bool deleted) { is_deleted_ = deleted; }
@@ -198,6 +205,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
ServiceWorkerStatusCode status);
const GURL pattern_;
+ blink::WebServiceWorkerUpdateViaCache update_via_cache_;
const int64_t registration_id_;
bool is_deleted_;
bool is_uninstalling_;

Powered by Google App Engine
This is Rietveld 408576698