Index: content/browser/service_worker/service_worker_registration.h |
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h |
index b386eecfad3fa265444694eb99c850339b07ebc3..7326139106047f70e8273a3e97dbe48e1aca7aa4 100644 |
--- a/content/browser/service_worker/service_worker_registration.h |
+++ b/content/browser/service_worker/service_worker_registration.h |
@@ -102,6 +102,9 @@ class CONTENT_EXPORT ServiceWorkerRegistration |
// is called, activation is initiated immediately. |
void ActivateWaitingVersionWhenReady(); |
+ // Activate version immediately. Used when skip waiting flag is set. |
falken
2014/11/14 04:00:15
The second sentence is a little misleading: it's a
xiang
2014/11/17 08:42:10
Done.
|
+ void ActivateWaitingVersion(); |
+ |
// Triggers the [[ClearRegistration]] algorithm when the currently |
// active version has no controllees. Deletes this registration |
// from storage immediately. |
@@ -131,8 +134,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration |
// ServiceWorkerVersion::Listener override. |
void OnNoControllees(ServiceWorkerVersion* version) override; |
- // This method corresponds to the [[Activate]] algorithm. |
- void ActivateWaitingVersion(); |
+ void PrepareProviderHostsToSkipWaiting(); |
void OnActivateEventFinished( |
ServiceWorkerVersion* activating_version, |
ServiceWorkerStatusCode status); |