| Index: Source/core/dom/ContextLifecycleObserver.h
|
| diff --git a/Source/core/dom/ContextLifecycleObserver.h b/Source/core/dom/ContextLifecycleObserver.h
|
| index 574455e861a357cf4f33514367aaf69b3657d5a9..a56b91c94a13e1df85f02c66bdf9a7c0b6ba37a6 100644
|
| --- a/Source/core/dom/ContextLifecycleObserver.h
|
| +++ b/Source/core/dom/ContextLifecycleObserver.h
|
| @@ -27,25 +27,23 @@
|
| #ifndef ContextLifecycleObserver_h
|
| #define ContextLifecycleObserver_h
|
|
|
| +#include "core/platform/LifecycleObserver.h"
|
| +
|
| namespace WebCore {
|
|
|
| class ScriptExecutionContext;
|
|
|
| -class ContextLifecycleObserver {
|
| +class ContextLifecycleObserver : public LifecycleObserver {
|
| public:
|
| - enum Type {
|
| - ActiveDOMObjectType,
|
| - DocumentLifecycleObserverType,
|
| - GenericType
|
| - };
|
| -
|
| explicit ContextLifecycleObserver(ScriptExecutionContext*, Type = GenericType);
|
| - virtual void contextDestroyed();
|
| +
|
| + virtual void contextDestroyed() OVERRIDE;
|
|
|
| ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; }
|
|
|
| protected:
|
| virtual ~ContextLifecycleObserver();
|
| +
|
| void observeContext(ScriptExecutionContext*, Type);
|
|
|
| ScriptExecutionContext* m_scriptExecutionContext;
|
|
|