summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/WorkerScriptController.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/port/bindings/v8/WorkerScriptController.h')
-rw-r--r--webkit/port/bindings/v8/WorkerScriptController.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/webkit/port/bindings/v8/WorkerScriptController.h b/webkit/port/bindings/v8/WorkerScriptController.h
index a66e080..efc71d3 100644
--- a/webkit/port/bindings/v8/WorkerScriptController.h
+++ b/webkit/port/bindings/v8/WorkerScriptController.h
@@ -29,6 +29,8 @@
#if ENABLE(WORKERS)
+#include <wtf/OwnPtr.h>
+#include <wtf/Threading.h>
#include "v8.h"
namespace WebCore {
@@ -36,22 +38,22 @@ namespace WebCore {
class ScriptSourceCode;
class ScriptValue;
class WorkerContext;
+ class WorkerContextExecutionProxy;
class WorkerScriptController {
public:
WorkerScriptController(WorkerContext*);
~WorkerScriptController();
+ WorkerContextExecutionProxy* proxy() { return m_proxy.get(); }
+
ScriptValue evaluate(const ScriptSourceCode&);
void forbidExecution();
private:
- void InitContextIfNeeded();
- void Dispose();
-
WorkerContext* m_workerContext;
- v8::Persistent<v8::Context> m_context;
+ OwnPtr<WorkerContextExecutionProxy> m_proxy;
Mutex m_sharedDataMutex;
bool m_executionForbidden;