Index: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.h b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.h |
index ebcb21b8d280358e8827a9e698b49034d63ab95e..9d8584e731c76b9c9313dac76f24b1e63c9da323 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.h |
@@ -5,6 +5,7 @@ |
#ifndef NavigatorServiceWorker_h |
#define NavigatorServiceWorker_h |
+#include "core/dom/ContextLifecycleObserver.h" |
#include "core/frame/Navigator.h" |
#include "modules/ModulesExport.h" |
#include "platform/Supplementable.h" |
@@ -17,7 +18,7 @@ class ExceptionState; |
class Navigator; |
class ServiceWorkerContainer; |
-class MODULES_EXPORT NavigatorServiceWorker final : public GarbageCollected<NavigatorServiceWorker>, public Supplement<Navigator>, public DOMWindowProperty { |
+class MODULES_EXPORT NavigatorServiceWorker final : public GarbageCollected<NavigatorServiceWorker>, public Supplement<Navigator>, public ContextLifecycleObserver { |
USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker); |
public: |
static NavigatorServiceWorker* from(Document&); |
@@ -29,12 +30,12 @@ public: |
private: |
explicit NavigatorServiceWorker(Navigator&); |
- ServiceWorkerContainer* serviceWorker(ExceptionState&); |
+ ServiceWorkerContainer* serviceWorker(LocalFrame*, ExceptionState&); |
static const char* supplementName(); |
- // DOMWindowProperty override. |
- void willDetachGlobalObjectFromFrame() override; |
+ // ContextLifecycleObserver override. |
+ void contextDestroyed() override; |
Member<ServiceWorkerContainer> m_serviceWorker; |
}; |