| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8DebuggerAgentImpl_h | 5 #ifndef V8DebuggerAgentImpl_h |
| 6 #define V8DebuggerAgentImpl_h | 6 #define V8DebuggerAgentImpl_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/Dispatcher.h" | 8 #include "platform/inspector_protocol/Dispatcher.h" |
| 9 #include "platform/inspector_protocol/Frontend.h" | 9 #include "platform/inspector_protocol/Frontend.h" |
| 10 #include "platform/v8_inspector/ScriptBreakpoint.h" | 10 #include "platform/v8_inspector/ScriptBreakpoint.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 enum BreakpointSource { | 55 enum BreakpointSource { |
| 56 UserBreakpointSource, | 56 UserBreakpointSource, |
| 57 DebugCommandBreakpointSource, | 57 DebugCommandBreakpointSource, |
| 58 MonitorCommandBreakpointSource | 58 MonitorCommandBreakpointSource |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 V8DebuggerAgentImpl(InjectedScriptManager*, V8DebuggerImpl*, int contextGrou
pId); | 61 V8DebuggerAgentImpl(InjectedScriptManager*, V8DebuggerImpl*, int contextGrou
pId); |
| 62 ~V8DebuggerAgentImpl() override; | 62 ~V8DebuggerAgentImpl() override; |
| 63 | 63 |
| 64 void setInspectorState(PassRefPtr<protocol::DictionaryValue>) override; | 64 void setInspectorState(protocol::DictionaryValue*) override; |
| 65 void setFrontend(protocol::Frontend::Debugger* frontend) override { m_fronte
nd = frontend; } | 65 void setFrontend(protocol::Frontend::Debugger* frontend) override { m_fronte
nd = frontend; } |
| 66 void clearFrontend() override; | 66 void clearFrontend() override; |
| 67 void restore() override; | 67 void restore() override; |
| 68 void disable(ErrorString*); | 68 void disable(ErrorString*); |
| 69 | 69 |
| 70 bool isPaused() override; | 70 bool isPaused() override; |
| 71 | 71 |
| 72 // Part of the protocol. | 72 // Part of the protocol. |
| 73 void enable(ErrorString*) override; | 73 void enable(ErrorString*) override; |
| 74 void setBreakpointsActive(ErrorString*, bool active) override; | 74 void setBreakpointsActive(ErrorString*, bool active) override; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 int promiseId, | 158 int promiseId, |
| 159 const Maybe<String>& objectGroup, | 159 const Maybe<String>& objectGroup, |
| 160 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; | 160 OwnPtr<protocol::Runtime::RemoteObject>* promise) override; |
| 161 void flushAsyncOperationEvents(ErrorString*) override; | 161 void flushAsyncOperationEvents(ErrorString*) override; |
| 162 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 162 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
| 163 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 163 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
| 164 void setBlackboxedRanges(ErrorString*, | 164 void setBlackboxedRanges(ErrorString*, |
| 165 const String& scriptId, | 165 const String& scriptId, |
| 166 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position
s) override; | 166 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position
s) override; |
| 167 | 167 |
| 168 void schedulePauseOnNextStatement(const String& breakReason, PassRefPtr<prot
ocol::DictionaryValue> data) override; | 168 void schedulePauseOnNextStatement(const String& breakReason, PassOwnPtr<prot
ocol::DictionaryValue> data) override; |
| 169 void cancelPauseOnNextStatement() override; | 169 void cancelPauseOnNextStatement() override; |
| 170 bool canBreakProgram() override; | 170 bool canBreakProgram() override; |
| 171 void breakProgram(const String& breakReason, PassRefPtr<protocol::Dictionary
Value> data) override; | 171 void breakProgram(const String& breakReason, PassOwnPtr<protocol::Dictionary
Value> data) override; |
| 172 void breakProgramOnException(const String& breakReason, PassRefPtr<protocol:
:DictionaryValue> data) override; | 172 void breakProgramOnException(const String& breakReason, PassOwnPtr<protocol:
:DictionaryValue> data) override; |
| 173 void willExecuteScript(int scriptId) override; | 173 void willExecuteScript(int scriptId) override; |
| 174 void didExecuteScript() override; | 174 void didExecuteScript() override; |
| 175 | 175 |
| 176 bool enabled() override; | 176 bool enabled() override; |
| 177 V8DebuggerImpl& debugger() override { return *m_debugger; } | 177 V8DebuggerImpl& debugger() override { return *m_debugger; } |
| 178 | 178 |
| 179 void setBreakpointAt(const String& scriptId, int lineNumber, int columnNumbe
r, BreakpointSource, const String& condition = String()); | 179 void setBreakpointAt(const String& scriptId, int lineNumber, int columnNumbe
r, BreakpointSource, const String& condition = String()); |
| 180 void removeBreakpointAt(const String& scriptId, int lineNumber, int columnNu
mber, BreakpointSource); | 180 void removeBreakpointAt(const String& scriptId, int lineNumber, int columnNu
mber, BreakpointSource); |
| 181 | 181 |
| 182 // Async call stacks implementation | 182 // Async call stacks implementation |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 NoStep = 0, | 244 NoStep = 0, |
| 245 StepInto, | 245 StepInto, |
| 246 StepOver, | 246 StepOver, |
| 247 StepOut | 247 StepOut |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 InjectedScriptManager* m_injectedScriptManager; | 250 InjectedScriptManager* m_injectedScriptManager; |
| 251 V8DebuggerImpl* m_debugger; | 251 V8DebuggerImpl* m_debugger; |
| 252 int m_contextGroupId; | 252 int m_contextGroupId; |
| 253 bool m_enabled; | 253 bool m_enabled; |
| 254 RefPtr<protocol::DictionaryValue> m_state; | 254 protocol::DictionaryValue* m_state; |
| 255 protocol::Frontend::Debugger* m_frontend; | 255 protocol::Frontend::Debugger* m_frontend; |
| 256 v8::Isolate* m_isolate; | 256 v8::Isolate* m_isolate; |
| 257 v8::Global<v8::Context> m_pausedContext; | 257 v8::Global<v8::Context> m_pausedContext; |
| 258 v8::Global<v8::Object> m_currentCallStack; | 258 v8::Global<v8::Object> m_currentCallStack; |
| 259 ScriptsMap m_scripts; | 259 ScriptsMap m_scripts; |
| 260 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds
; | 260 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds
; |
| 261 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; | 261 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; |
| 262 MuteBreakpoins m_muteBreakpoints; | 262 MuteBreakpoins m_muteBreakpoints; |
| 263 String m_continueToLocationBreakpointId; | 263 String m_continueToLocationBreakpointId; |
| 264 String m_breakReason; | 264 String m_breakReason; |
| 265 RefPtr<protocol::DictionaryValue> m_breakAuxData; | 265 OwnPtr<protocol::DictionaryValue> m_breakAuxData; |
| 266 DebuggerStep m_scheduledDebuggerStep; | 266 DebuggerStep m_scheduledDebuggerStep; |
| 267 bool m_skipNextDebuggerStepOut; | 267 bool m_skipNextDebuggerStepOut; |
| 268 bool m_javaScriptPauseScheduled; | 268 bool m_javaScriptPauseScheduled; |
| 269 bool m_steppingFromFramework; | 269 bool m_steppingFromFramework; |
| 270 bool m_pausingOnNativeEvent; | 270 bool m_pausingOnNativeEvent; |
| 271 bool m_pausingOnAsyncOperation; | 271 bool m_pausingOnAsyncOperation; |
| 272 | 272 |
| 273 int m_skippedStepFrameCount; | 273 int m_skippedStepFrameCount; |
| 274 int m_recursionLevelForStepOut; | 274 int m_recursionLevelForStepOut; |
| 275 int m_recursionLevelForStepFrame; | 275 int m_recursionLevelForStepFrame; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 291 int m_currentAsyncOperationId; | 291 int m_currentAsyncOperationId; |
| 292 bool m_pendingTraceAsyncOperationCompleted; | 292 bool m_pendingTraceAsyncOperationCompleted; |
| 293 bool m_startingStepIntoAsync; | 293 bool m_startingStepIntoAsync; |
| 294 HashMap<String, Vector<std::pair<int, int>>> m_blackboxedPositions; | 294 HashMap<String, Vector<std::pair<int, int>>> m_blackboxedPositions; |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace blink | 297 } // namespace blink |
| 298 | 298 |
| 299 | 299 |
| 300 #endif // V8DebuggerAgentImpl_h | 300 #endif // V8DebuggerAgentImpl_h |
| OLD | NEW |