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

Unified Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove should_notify_controllerchange flag Created 5 years, 11 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/browser/service_worker/service_worker_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 9123014273d400004148f897a6ed999799677d5b..1be9086f3f2888b3fcf22bf5afe12e411c05d556 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -94,6 +94,10 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void SetTopmostFrameUrl(const GURL& url);
const GURL& topmost_frame_url() const { return topmost_frame_url_; }
+ // Starts using the |registration| which means the active worker will
+ // control this provider.
+ void UseRegistration(ServiceWorkerRegistration* registration);
falken 2015/01/28 08:59:49 This is better, but I'm still not a fan of this na
xiang 2015/01/29 02:58:37 You are right, the "use" will confuse people witho
+
// Associates to |registration| to listen for its version change events.
falken 2015/01/28 08:59:49 It's not part of your patch, but this class no lon
void AssociateRegistration(ServiceWorkerRegistration* registration);

Powered by Google App Engine
This is Rietveld 408576698