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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC 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.h
diff --git a/content/child/service_worker/web_service_worker_registration_impl.h b/content/child/service_worker/web_service_worker_registration_impl.h
index c2772a0bd96321850b9f8f9e6b19a9b23350c9af..31ba5635857eb136aa0ff0cd94b6ab5853fefdde 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.h
+++ b/content/child/service_worker/web_service_worker_registration_impl.h
@@ -43,12 +43,16 @@ class CONTENT_EXPORT WebServiceWorkerRegistrationImpl
void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker);
void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker);
+ void SetRegistrationHandleReference(
+ std::unique_ptr<ServiceWorkerRegistrationHandleReference> handle_ref);
+
void OnUpdateFound();
// blink::WebServiceWorkerRegistration overrides.
void SetProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override;
blink::WebServiceWorkerRegistrationProxy* Proxy() override;
blink::WebURL Scope() const override;
+ blink::WebServiceWorkerUpdateViaCache UpdateViaCache() const override;
void Update(
blink::WebServiceWorkerProvider* provider,
std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) override;

Powered by Google App Engine
This is Rietveld 408576698