blob: 7408b5f2728680aab693f674c68808e32912d4b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "root.h"
namespace WebCore {
class ScriptExecutionContext;
class ContextDestructionObserver {
public:
WEBCORE_EXPORT virtual void contextDestroyed();
ScriptExecutionContext* scriptExecutionContext() const { return m_context; }
protected:
WEBCORE_EXPORT ContextDestructionObserver(ScriptExecutionContext*);
WEBCORE_EXPORT virtual ~ContextDestructionObserver();
void observeContext(ScriptExecutionContext*);
private:
ScriptExecutionContext* m_context;
};
}
|