| Index: Source/core/dom/SimpleLifecycleObserver.h
|
| diff --git a/Source/core/dom/ContextLifecycleObserver.h b/Source/core/dom/SimpleLifecycleObserver.h
|
| similarity index 73%
|
| copy from Source/core/dom/ContextLifecycleObserver.h
|
| copy to Source/core/dom/SimpleLifecycleObserver.h
|
| index 574455e861a357cf4f33514367aaf69b3657d5a9..d519256ed5bb77991b0bcfcd709e0b9851c2d681 100644
|
| --- a/Source/core/dom/ContextLifecycleObserver.h
|
| +++ b/Source/core/dom/SimpleLifecycleObserver.h
|
| @@ -24,33 +24,36 @@
|
| *
|
| */
|
|
|
| -#ifndef ContextLifecycleObserver_h
|
| -#define ContextLifecycleObserver_h
|
| +#ifndef SimpleLifecycleObserver_h
|
| +#define SimpleLifecycleObserver_h
|
|
|
| namespace WebCore {
|
|
|
| -class ScriptExecutionContext;
|
| +class SimpleLifecycleContext;
|
|
|
| -class ContextLifecycleObserver {
|
| +class SimpleLifecycleObserver {
|
| public:
|
| enum Type {
|
| ActiveDOMObjectType,
|
| DocumentLifecycleObserverType,
|
| - GenericType
|
| + GenericType,
|
| + PageLifecycleObserverType
|
| };
|
|
|
| - explicit ContextLifecycleObserver(ScriptExecutionContext*, Type = GenericType);
|
| + explicit SimpleLifecycleObserver(SimpleLifecycleContext*, Type = GenericType);
|
| +
|
| virtual void contextDestroyed();
|
|
|
| - ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; }
|
| + SimpleLifecycleContext* simpleLifecycleContext() const { return m_simpleLifecycleContext; }
|
|
|
| protected:
|
| - virtual ~ContextLifecycleObserver();
|
| - void observeContext(ScriptExecutionContext*, Type);
|
| + virtual ~SimpleLifecycleObserver();
|
| +
|
| + void observeContext(SimpleLifecycleContext*, Type);
|
|
|
| - ScriptExecutionContext* m_scriptExecutionContext;
|
| + SimpleLifecycleContext* m_simpleLifecycleContext;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // ContextLifecycleObserver_h
|
| +#endif // SimpleLifecycleObserver_h
|
|
|