| 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" | 8 #include "platform/v8_inspector/Allocator.h" |
| 9 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 9 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
| 10 #include "platform/v8_inspector/V8DebuggerScript.h" | 10 #include "platform/v8_inspector/V8DebuggerScript.h" |
| 11 #include "platform/v8_inspector/protocol/Forward.h" |
| 11 #include "platform/v8_inspector/protocol/Runtime.h" | 12 #include "platform/v8_inspector/protocol/Runtime.h" |
| 12 #include "platform/v8_inspector/public/StringView.h" | 13 #include "platform/v8_inspector/public/StringView.h" |
| 13 #include "platform/v8_inspector/public/V8ContextInfo.h" | 14 #include "platform/v8_inspector/public/V8ContextInfo.h" |
| 14 | 15 |
| 15 #include <v8-debug.h> | 16 #include <v8-debug.h> |
| 16 #include <v8.h> | 17 #include <v8.h> |
| 17 #include <vector> | 18 #include <vector> |
| 18 | 19 |
| 19 namespace v8_inspector { | 20 namespace v8_inspector { |
| 20 | 21 |
| 21 struct ScriptBreakpoint; | 22 struct ScriptBreakpoint; |
| 22 class V8DebuggerAgentImpl; | 23 class V8DebuggerAgentImpl; |
| 23 class V8InspectorImpl; | 24 class V8InspectorImpl; |
| 24 class V8StackTraceImpl; | 25 class V8StackTraceImpl; |
| 25 | 26 |
| 26 namespace protocol = blink::protocol; | 27 using protocol::ErrorString; |
| 27 | 28 |
| 28 class V8Debugger { | 29 class V8Debugger { |
| 29 PROTOCOL_DISALLOW_COPY(V8Debugger); | 30 V8_INSPECTOR_DISALLOW_COPY(V8Debugger); |
| 30 public: | 31 public: |
| 31 V8Debugger(v8::Isolate*, V8InspectorImpl*); | 32 V8Debugger(v8::Isolate*, V8InspectorImpl*); |
| 32 ~V8Debugger(); | 33 ~V8Debugger(); |
| 33 | 34 |
| 34 static int contextId(v8::Local<v8::Context>); | 35 static int contextId(v8::Local<v8::Context>); |
| 35 static int getGroupId(v8::Local<v8::Context>); | 36 static int getGroupId(v8::Local<v8::Context>); |
| 36 int markContext(const V8ContextInfo&); | 37 int markContext(const V8ContextInfo&); |
| 37 | 38 |
| 38 bool enabled() const; | 39 bool enabled() const; |
| 39 | 40 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 protocol::HashSet<void*> m_recurringTasks; | 125 protocol::HashSet<void*> m_recurringTasks; |
| 125 int m_maxAsyncCallStackDepth; | 126 int m_maxAsyncCallStackDepth; |
| 126 std::vector<void*> m_currentTasks; | 127 std::vector<void*> m_currentTasks; |
| 127 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 128 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 128 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 129 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace v8_inspector | 132 } // namespace v8_inspector |
| 132 | 133 |
| 133 #endif // V8Debugger_h | 134 #endif // V8Debugger_h |
| OLD | NEW |