Index: Source/core/frame/DOMWindowLifecycleObserver.h |
diff --git a/Source/core/frame/DOMWindowLifecycleObserver.h b/Source/core/frame/DOMWindowLifecycleObserver.h |
index 40fc8e68f4fe0dfa00fc3b43d59ba4ca4dfd33b4..33f6c9b0d574f072b6f1460ba5df08e483bbd9be 100644 |
--- a/Source/core/frame/DOMWindowLifecycleObserver.h |
+++ b/Source/core/frame/DOMWindowLifecycleObserver.h |
@@ -33,22 +33,22 @@ |
namespace blink { |
-template<> void observeContext(LocalDOMWindow*, LifecycleObserver<LocalDOMWindow>*); |
-template<> void unobserveContext(LocalDOMWindow*, LifecycleObserver<LocalDOMWindow>*); |
+class DOMWindowLifecycleNotifier; |
-class DOMWindowLifecycleObserver : public LifecycleObserver<LocalDOMWindow> { |
+class DOMWindowLifecycleObserver : public LifecycleObserver<LocalDOMWindow, DOMWindowLifecycleObserver, DOMWindowLifecycleNotifier> { |
public: |
- explicit DOMWindowLifecycleObserver(LocalDOMWindow*); |
- virtual ~DOMWindowLifecycleObserver(); |
- |
virtual void contextDestroyed() |
{ |
didRemoveAllEventListeners(lifecycleContext()); |
- LifecycleObserver<LocalDOMWindow>::contextDestroyed(); |
+ LifecycleObserver<LocalDOMWindow, DOMWindowLifecycleObserver, DOMWindowLifecycleNotifier>::contextDestroyed(); |
} |
virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) { } |
virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) { } |
virtual void didRemoveAllEventListeners(LocalDOMWindow*) { } |
+ |
+protected: |
+ explicit DOMWindowLifecycleObserver(LocalDOMWindow*); |
+ virtual ~DOMWindowLifecycleObserver(); |
}; |
} // namespace blink |