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

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: Move API change to another patch and address 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/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 b48520c074a5bfc94c2f31f827c4e750d8225002..c4cf4fd814971b359db6bb4d1772b0989bfa6787 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -56,6 +56,9 @@ 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_;
+ }
bool is_deleted() const { return is_deleted_; }
void set_is_deleted(bool deleted) { is_deleted_ = deleted; }
@@ -198,6 +201,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
ServiceWorkerStatusCode status);
const GURL pattern_;
+ const 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