Index: src/inspector/v8-debugger-agent-impl.h |
diff --git a/src/inspector/v8-debugger-agent-impl.h b/src/inspector/v8-debugger-agent-impl.h |
index 715b3c3fd78a718cc623ffb1527a3e9aabe437cd..62b258e48d205781304fa734647bc832d5c826b9 100644 |
--- a/src/inspector/v8-debugger-agent-impl.h |
+++ b/src/inspector/v8-debugger-agent-impl.h |
@@ -127,7 +127,7 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend { |
void reset(); |
// Interface for V8InspectorImpl |
- bool didPause(v8::Local<v8::Context>, v8::Local<v8::Value> exception, |
+ void didPause(int contextId, v8::Local<v8::Value> exception, |
const std::vector<String16>& hitBreakpoints, |
bool isPromiseRejection, bool isUncaught, bool isOOMBreak); |
void didContinue(); |
@@ -165,6 +165,8 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend { |
Response setBlackboxPattern(const String16& pattern); |
void resetBlackboxedStateCache(); |
+ bool isPaused() { return m_pausedCallFrames.size(); } |
+ |
using ScriptsMap = |
protocol::HashMap<String16, std::unique_ptr<V8DebuggerScript>>; |
using BreakpointIdToDebuggerBreakpointIdsMap = |
@@ -182,7 +184,6 @@ class V8DebuggerAgentImpl : public protocol::Debugger::Backend { |
protocol::DictionaryValue* m_state; |
protocol::Debugger::Frontend m_frontend; |
v8::Isolate* m_isolate; |
- v8::Global<v8::Context> m_pausedContext; |
JavaScriptCallFrames m_pausedCallFrames; |
ScriptsMap m_scripts; |
BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds; |