diff options
Diffstat (limited to 'WebCore/bindings/v8/ScheduledAction.h')
-rw-r--r-- | WebCore/bindings/v8/ScheduledAction.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/WebCore/bindings/v8/ScheduledAction.h b/WebCore/bindings/v8/ScheduledAction.h index 53694c7..003885f 100644 --- a/WebCore/bindings/v8/ScheduledAction.h +++ b/WebCore/bindings/v8/ScheduledAction.h @@ -31,7 +31,9 @@ #ifndef ScheduledAction_h #define ScheduledAction_h +#include "OwnHandle.h" #include "ScriptSourceCode.h" +#include "V8GCController.h" #include <v8.h> @@ -44,9 +46,10 @@ namespace WebCore { class ScheduledAction { public: - ScheduledAction(v8::Handle<v8::Function>, int argc, v8::Handle<v8::Value> argv[]); - explicit ScheduledAction(const WebCore::String& code, const KURL& url = KURL()) - : m_argc(0) + ScheduledAction(v8::Handle<v8::Context>, v8::Handle<v8::Function>, int argc, v8::Handle<v8::Value> argv[]); + explicit ScheduledAction(v8::Handle<v8::Context> context, const WebCore::String& code, const KURL& url = KURL()) + : m_context(context) + , m_argc(0) , m_argv(0) , m_code(code, url) { @@ -61,6 +64,7 @@ namespace WebCore { void execute(WorkerContext*); #endif + OwnHandle<v8::Context> m_context; v8::Persistent<v8::Function> m_function; int m_argc; v8::Persistent<v8::Value>* m_argv; |