aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h')
-rw-r--r--src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h b/src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h
new file mode 100644
index 000000000..ccf20f301
--- /dev/null
+++ b/src/javascript/jsc/bindings/webcore/ContextDestructionObserver.h
@@ -0,0 +1,33 @@
+
+
+#pragma once
+
+#include "root.h"
+
+#include "ScriptExecutionContext.h"
+
+namespace WebCore {
+
+// TODO:
+class ContextDestructionObserver {
+
+public:
+ WEBCORE_EXPORT void contextDestroyed() {}
+
+ ScriptExecutionContext* scriptExecutionContext() const { return m_context; }
+
+ ContextDestructionObserver(ScriptExecutionContext* context)
+ : m_context(context)
+ {
+ }
+ ContextDestructionObserver(ContextDestructionObserver& context)
+ : m_context(context.m_context)
+ {
+ }
+
+private:
+ int m_junk = 0;
+ ScriptExecutionContext* m_context;
+};
+
+} \ No newline at end of file