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/Collections.h" | 8 #include "platform/inspector_protocol/Collections.h" |
9 #include "platform/inspector_protocol/String16.h" | 9 #include "platform/inspector_protocol/String16.h" |
10 #include "platform/v8_inspector/V8InspectorImpl.h" | 10 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
11 #include "platform/v8_inspector/protocol/Debugger.h" | 11 #include "platform/v8_inspector/protocol/Debugger.h" |
12 | 12 |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
| 17 struct ScriptBreakpoint; |
17 class JavaScriptCallFrame; | 18 class JavaScriptCallFrame; |
18 class PromiseTracker; | 19 class PromiseTracker; |
| 20 class V8Debugger; |
| 21 class V8DebuggerScript; |
| 22 class V8InspectorImpl; |
19 class V8InspectorSessionImpl; | 23 class V8InspectorSessionImpl; |
20 class V8Regex; | 24 class V8Regex; |
21 class V8StackTraceImpl; | 25 class V8StackTraceImpl; |
22 | 26 |
23 namespace protocol { | 27 namespace protocol { |
24 class DictionaryValue; | 28 class DictionaryValue; |
25 } | 29 } |
26 | 30 |
27 using protocol::Maybe; | 31 using protocol::Maybe; |
28 | 32 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>>
; | 181 using MuteBreakpoins = protocol::HashMap<String16, std::pair<String16, int>>
; |
178 | 182 |
179 enum DebuggerStep { | 183 enum DebuggerStep { |
180 NoStep = 0, | 184 NoStep = 0, |
181 StepInto, | 185 StepInto, |
182 StepOver, | 186 StepOver, |
183 StepOut | 187 StepOut |
184 }; | 188 }; |
185 | 189 |
186 V8InspectorImpl* m_inspector; | 190 V8InspectorImpl* m_inspector; |
| 191 V8Debugger* m_debugger; |
187 V8InspectorSessionImpl* m_session; | 192 V8InspectorSessionImpl* m_session; |
188 bool m_enabled; | 193 bool m_enabled; |
189 protocol::DictionaryValue* m_state; | 194 protocol::DictionaryValue* m_state; |
190 protocol::Debugger::Frontend m_frontend; | 195 protocol::Debugger::Frontend m_frontend; |
191 v8::Isolate* m_isolate; | 196 v8::Isolate* m_isolate; |
192 v8::Global<v8::Context> m_pausedContext; | 197 v8::Global<v8::Context> m_pausedContext; |
193 JavaScriptCallFrames m_pausedCallFrames; | 198 JavaScriptCallFrames m_pausedCallFrames; |
194 ScriptsMap m_scripts; | 199 ScriptsMap m_scripts; |
195 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds
; | 200 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds
; |
196 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; | 201 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; |
(...skipping 12 matching lines...) Expand all Loading... |
209 bool m_skipAllPauses; | 214 bool m_skipAllPauses; |
210 | 215 |
211 std::unique_ptr<V8Regex> m_blackboxPattern; | 216 std::unique_ptr<V8Regex> m_blackboxPattern; |
212 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo
sitions; | 217 protocol::HashMap<String16, std::vector<std::pair<int, int>>> m_blackboxedPo
sitions; |
213 }; | 218 }; |
214 | 219 |
215 } // namespace blink | 220 } // namespace blink |
216 | 221 |
217 | 222 |
218 #endif // V8DebuggerAgentImpl_h | 223 #endif // V8DebuggerAgentImpl_h |
OLD | NEW |