Index: Source/core/dom/DocumentLifecycleNotifier.h |
diff --git a/Source/core/dom/DocumentLifecycleNotifier.h b/Source/core/dom/DocumentLifecycleNotifier.h |
index 229002a212b63bd1db64590e5c99ab4877f5d95b..e97edd1378527d0dfd43751ffebb457df83180ad 100644 |
--- a/Source/core/dom/DocumentLifecycleNotifier.h |
+++ b/Source/core/dom/DocumentLifecycleNotifier.h |
@@ -27,31 +27,24 @@ |
#define DocumentLifecycleNotifier_h |
#include "platform/LifecycleNotifier.h" |
-#include "wtf/HashSet.h" |
-#include "wtf/PassOwnPtr.h" |
-#include "wtf/TemporaryChange.h" |
namespace blink { |
class Document; |
class DocumentLifecycleObserver; |
-class DocumentLifecycleNotifier : public LifecycleNotifier<Document> { |
+class DocumentLifecycleNotifier : public LifecycleNotifier<Document, DocumentLifecycleObserver> { |
public: |
+ void addObserver(DocumentLifecycleObserver*); |
+ void removeObserver(DocumentLifecycleObserver*); |
+ |
void notifyDocumentWasDetached(); |
#if !ENABLE(OILPAN) |
void notifyDocumentWasDisposed(); |
#endif |
- virtual void addObserver(Observer*) override final; |
- virtual void removeObserver(Observer*) override final; |
- |
protected: |
explicit DocumentLifecycleNotifier(Document*); |
- |
-private: |
- using DocumentObserverSet = HashSet<DocumentLifecycleObserver*>; |
- DocumentObserverSet m_documentObservers; |
}; |
} // namespace blink |