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 ThreadDebugger_h | 5 #ifndef ThreadDebugger_h |
6 #define ThreadDebugger_h | 6 #define ThreadDebugger_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/inspector/ConsoleTypes.h" | 9 #include "core/inspector/ConsoleTypes.h" |
10 #include "platform/Timer.h" | 10 #include "platform/Timer.h" |
11 #include "platform/UserGestureIndicator.h" | 11 #include "platform/UserGestureIndicator.h" |
12 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
13 #include "wtf/Vector.h" | 13 #include "wtf/Vector.h" |
14 #include <memory> | 14 #include <memory> |
15 #include <v8-inspector.h> | 15 #include <v8-inspector.h> |
16 #include <v8-profiler.h> | 16 #include <v8-profiler.h> |
17 #include <v8.h> | 17 #include <v8.h> |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class ConsoleMessage; | |
22 class ExecutionContext; | 21 class ExecutionContext; |
23 class SourceLocation; | 22 class SourceLocation; |
24 | 23 |
25 // TODO(dgozman): rename this to ThreadInspector (and subclasses). | 24 // TODO(dgozman): rename this to ThreadInspector (and subclasses). |
26 class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient { | 25 class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient { |
27 WTF_MAKE_NONCOPYABLE(ThreadDebugger); | 26 WTF_MAKE_NONCOPYABLE(ThreadDebugger); |
28 | 27 |
29 public: | 28 public: |
30 explicit ThreadDebugger(v8::Isolate*); | 29 explicit ThreadDebugger(v8::Isolate*); |
31 ~ThreadDebugger() override; | 30 ~ThreadDebugger() override; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 std::unique_ptr<v8::TracingCpuProfiler> m_v8TracingCpuProfiler; | 106 std::unique_ptr<v8::TracingCpuProfiler> m_v8TracingCpuProfiler; |
108 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; | 107 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; |
109 Vector<v8_inspector::V8InspectorClient::TimerCallback> m_timerCallbacks; | 108 Vector<v8_inspector::V8InspectorClient::TimerCallback> m_timerCallbacks; |
110 Vector<void*> m_timerData; | 109 Vector<void*> m_timerData; |
111 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; | 110 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; |
112 }; | 111 }; |
113 | 112 |
114 } // namespace blink | 113 } // namespace blink |
115 | 114 |
116 #endif // ThreadDebugger_h | 115 #endif // ThreadDebugger_h |
OLD | NEW |