diff options
Diffstat (limited to 'WebCore/bindings/v8/ScriptDebugServer.h')
-rw-r--r-- | WebCore/bindings/v8/ScriptDebugServer.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/WebCore/bindings/v8/ScriptDebugServer.h b/WebCore/bindings/v8/ScriptDebugServer.h index a55388f..a1e0a47 100644 --- a/WebCore/bindings/v8/ScriptDebugServer.h +++ b/WebCore/bindings/v8/ScriptDebugServer.h @@ -36,12 +36,12 @@ #include "JavaScriptCallFrame.h" #include "PlatformString.h" #include "ScriptBreakpoint.h" -#include "StringHash.h" #include "Timer.h" #include <v8-debug.h> #include <wtf/HashMap.h> #include <wtf/Noncopyable.h> #include <wtf/PassOwnPtr.h> +#include <wtf/text/StringHash.h> namespace WebCore { @@ -70,7 +70,7 @@ public: PauseOnExceptionsState pauseOnExceptionsState(); void setPauseOnExceptionsState(PauseOnExceptionsState pauseOnExceptionsState); - void pause() { } + void pause(); void continueProgram(); void stepIntoStatement(); void stepOverStatement(); @@ -99,6 +99,14 @@ public: void setEnabled(bool); bool isDebuggerAlwaysEnabled(); + class Task { + public: + virtual ~Task() { } + virtual void run() = 0; + }; + static void interruptAndRun(PassOwnPtr<Task>); + void runPendingTasks(); + private: ScriptDebugServer(); ~ScriptDebugServer() { } |