Index: Source/core/inspector/ScriptDebuggerBase.h |
diff --git a/Source/core/inspector/ScriptDebuggerBase.h b/Source/core/inspector/ScriptDebuggerBase.h |
index f50671e8099e60a6a4ba3fc257895a74bd947cc9..0654ca2ae78e0ffcee31fbb140669693f8f06628 100644 |
--- a/Source/core/inspector/ScriptDebuggerBase.h |
+++ b/Source/core/inspector/ScriptDebuggerBase.h |
@@ -11,16 +11,28 @@ |
namespace blink { |
+class ScriptDebugListener; |
+ |
class CORE_EXPORT ScriptDebuggerBase : public V8Debugger::Client { |
WTF_MAKE_NONCOPYABLE(ScriptDebuggerBase); |
public: |
- ScriptDebuggerBase(v8::Isolate*, PassOwnPtrWillBeRawPtr<V8Debugger>); |
+ explicit ScriptDebuggerBase(v8::Isolate*); |
~ScriptDebuggerBase() override; |
- v8::Local<v8::Object> compileDebuggerScript() override; |
V8Debugger* debugger() const { return m_debugger.get(); } |
+ v8::Local<v8::Object> compileDebuggerScript() override; |
+ void didParseSource(v8::Local<v8::Context>, const V8Debugger::ParsedScript&) override; |
+ V8Debugger::SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints, bool isPromiseRejection) override; |
+ bool v8AsyncTaskEventsEnabled(ScriptState*) override; |
+ void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id) override; |
+ bool v8PromiseEventsEnabled(ScriptState*) override; |
+ void didReceiveV8PromiseEvent(ScriptState*, v8::Local<v8::Object> promise, v8::Local<v8::Value> parentPromise, int status) override; |
+ |
DECLARE_VIRTUAL_TRACE(); |
+protected: |
+ virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Context>) = 0; |
+ |
private: |
v8::Isolate* m_isolate; |
OwnPtrWillBeMember<V8Debugger> m_debugger; |