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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp

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/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
index 3cff55f706795b9b43df1da330a707b37fd7ab61..603b1d0ffe9ee5b1e36e43dd45c1736c0eb3e382 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
@@ -88,6 +88,10 @@ String ServiceWorkerRegistration::scope() const {
return m_handle->registration()->scope().string();
}
+bool ServiceWorkerRegistration::useCache() const {
+ return m_handle->registration()->useCache();
+}
+
ScriptPromise ServiceWorkerRegistration::update(ScriptState* scriptState) {
ServiceWorkerContainerClient* client =
ServiceWorkerContainerClient::from(getExecutionContext());

Powered by Google App Engine
This is Rietveld 408576698