OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 V8Debugger_h | 5 #ifndef V8Debugger_h |
6 #define V8Debugger_h | 6 #define V8Debugger_h |
7 | 7 |
8 #include "platform/inspector_protocol/InspectorProtocol.h" | |
9 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 8 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
10 #include "platform/v8_inspector/V8DebuggerScript.h" | 9 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 10 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
11 #include "platform/v8_inspector/protocol/Runtime.h" | 11 #include "platform/v8_inspector/protocol/Runtime.h" |
12 #include "platform/v8_inspector/public/V8ContextInfo.h" | 12 #include "platform/v8_inspector/public/V8ContextInfo.h" |
13 | 13 |
14 #include <v8-debug.h> | 14 #include <v8-debug.h> |
15 #include <v8.h> | 15 #include <v8.h> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 namespace v8_inspector { | 18 namespace v8_inspector { |
19 | 19 |
20 struct ScriptBreakpoint; | 20 struct ScriptBreakpoint; |
21 class V8DebuggerAgentImpl; | 21 class V8DebuggerAgentImpl; |
22 class V8InspectorImpl; | 22 class V8InspectorImpl; |
23 class V8StackTraceImpl; | 23 class V8StackTraceImpl; |
24 | 24 |
25 namespace protocol = blink::protocol; | 25 using protocol::ErrorString; |
26 | 26 |
27 class V8Debugger { | 27 class V8Debugger { |
28 PROTOCOL_DISALLOW_COPY(V8Debugger); | 28 PROTOCOL_DISALLOW_COPY(V8Debugger); |
29 public: | 29 public: |
30 V8Debugger(v8::Isolate*, V8InspectorImpl*); | 30 V8Debugger(v8::Isolate*, V8InspectorImpl*); |
31 ~V8Debugger(); | 31 ~V8Debugger(); |
32 | 32 |
33 static int contextId(v8::Local<v8::Context>); | 33 static int contextId(v8::Local<v8::Context>); |
34 static int getGroupId(v8::Local<v8::Context>); | 34 static int getGroupId(v8::Local<v8::Context>); |
35 int markContext(const V8ContextInfo&); | 35 int markContext(const V8ContextInfo&); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 protocol::HashSet<void*> m_recurringTasks; | 122 protocol::HashSet<void*> m_recurringTasks; |
123 int m_maxAsyncCallStackDepth; | 123 int m_maxAsyncCallStackDepth; |
124 std::vector<void*> m_currentTasks; | 124 std::vector<void*> m_currentTasks; |
125 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 125 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
126 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 126 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace v8_inspector | 129 } // namespace v8_inspector |
130 | 130 |
131 #endif // V8Debugger_h | 131 #endif // V8Debugger_h |
OLD | NEW |