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

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: fix a database error 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/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 6a6d0a59cb68f13722c1c93f39be978f68567512..fc24554dd9dee61b75c2ffec6f7c98866178f28d 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,11 @@ blink::WebURL WebServiceWorkerRegistrationImpl::Scope() const {
return handle_ref_->scope();
}
+blink::WebServiceWorkerUpdateViaCache
+WebServiceWorkerRegistrationImpl::UpdateViaCache() const {
+ return handle_ref_->update_via_cache();
+}
+
void WebServiceWorkerRegistrationImpl::Update(
blink::WebServiceWorkerProvider* provider,
std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) {

Powered by Google App Engine
This is Rietveld 408576698