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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.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: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
index 2f9ee552b473abfcea0ead55a9c85383f51c61bc..6aa0af605e02bd986c5008f69a83e8efc6b2a03c 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -51,6 +51,7 @@ class WebServiceWorkerRegistration {
virtual void proxyStopped() {}
virtual WebURL scope() const { return WebURL(); }
+ virtual bool useCache() const { return false; }
virtual int64_t registrationId() const = 0;
virtual void update(WebServiceWorkerProvider*,
std::unique_ptr<WebServiceWorkerUpdateCallbacks>) {}

Powered by Google App Engine
This is Rietveld 408576698