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

Unified Diff: content/child/service_worker/web_service_worker_registration_impl.cc

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: 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/child/service_worker/web_service_worker_registration_impl.cc
diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc
index de0acf7b035d155c5c01d7e96c9c565576c40cfb..0a274b077e8eefb6d4ba6f8ded6fed954c26600a 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.cc
+++ b/content/child/service_worker/web_service_worker_registration_impl.cc
@@ -123,6 +123,10 @@ blink::WebURL WebServiceWorkerRegistrationImpl::scope() const {
return handle_ref_->scope();
}
+bool WebServiceWorkerRegistrationImpl::useCache() const {
+ return handle_ref_->useCache();
+}
+
void WebServiceWorkerRegistrationImpl::update(
blink::WebServiceWorkerProvider* provider,
std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) {

Powered by Google App Engine
This is Rietveld 408576698