Index: content/browser/service_worker/service_worker_version.h |
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h |
index 3961be1e88abd43325698b1b1181968eaeac4b57..df37c879ce750b8b3881be1a7d4b4bc11f416fcc 100644 |
--- a/content/browser/service_worker/service_worker_version.h |
+++ b/content/browser/service_worker/service_worker_version.h |
@@ -64,7 +64,7 @@ class CONTENT_EXPORT ServiceWorkerVersion |
INSTALLING, // Install event is dispatched and being handled. |
INSTALLED, // Install event is finished and is ready to be activated. |
ACTIVATING, // Activate event is dispatched and being handled. |
- ACTIVATED, // Activation is finished and can run as activated. |
+ ACTIVATED, // Activation is finished and can run as activated. |
REDUNDANT, // The version is no longer running as activated, due to |
// unregistration or replace. |
}; |
@@ -85,6 +85,11 @@ class CONTENT_EXPORT ServiceWorkerVersion |
const base::string16& message, |
int line_number, |
const GURL& source_url) {} |
+ // Fires when a version transitions from having a controllee to not. |
+ virtual void OnNoControllees(ServiceWorkerVersion* version) {} |
+ |
+ protected: |
+ virtual ~Listener() {} |
}; |
ServiceWorkerVersion( |