diff options
Diffstat (limited to 'Source/JavaScriptCore/inspector/InspectorEnvironment.h')
-rw-r--r-- | Source/JavaScriptCore/inspector/InspectorEnvironment.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/JavaScriptCore/inspector/InspectorEnvironment.h b/Source/JavaScriptCore/inspector/InspectorEnvironment.h index 327a9f89a..3b60c1b4f 100644 --- a/Source/JavaScriptCore/inspector/InspectorEnvironment.h +++ b/Source/JavaScriptCore/inspector/InspectorEnvironment.h @@ -23,19 +23,25 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef InspectorEnvironment_h -#define InspectorEnvironment_h +#pragma once #include "CallData.h" +namespace WTF { +class Stopwatch; +} + namespace JSC { +class Exception; class SourceCode; +class VM; } namespace Inspector { -typedef JSC::JSValue (*InspectorFunctionCallHandler)(JSC::ExecState* exec, JSC::JSValue functionObject, JSC::CallType callType, const JSC::CallData& callData, JSC::JSValue thisValue, const JSC::ArgList& args); -typedef JSC::JSValue (*InspectorEvaluateHandler)(JSC::ExecState*, const JSC::SourceCode&, JSC::JSValue thisValue, JSC::JSValue* exception); +class ScriptDebugServer; +typedef JSC::JSValue (*InspectorFunctionCallHandler)(JSC::ExecState* exec, JSC::JSValue functionObject, JSC::CallType callType, const JSC::CallData& callData, JSC::JSValue thisValue, const JSC::ArgList& args, NakedPtr<JSC::Exception>& returnedException); +typedef JSC::JSValue (*InspectorEvaluateHandler)(JSC::ExecState*, const JSC::SourceCode&, JSC::JSValue thisValue, NakedPtr<JSC::Exception>& returnedException); class InspectorEnvironment { public: @@ -44,10 +50,10 @@ public: virtual bool canAccessInspectedScriptState(JSC::ExecState*) const = 0; virtual InspectorFunctionCallHandler functionCallHandler() const = 0; virtual InspectorEvaluateHandler evaluateHandler() const = 0; - virtual void willCallInjectedScriptFunction(JSC::ExecState*, const String& scriptName, int scriptLine) = 0; - virtual void didCallInjectedScriptFunction() = 0; + virtual void frontendInitialized() = 0; + virtual Ref<WTF::Stopwatch> executionStopwatch() = 0; + virtual ScriptDebugServer& scriptDebugServer() = 0; + virtual JSC::VM& vm() = 0; }; } // namespace Inspector - -#endif // !defined(InspectorEnvironment_h) |