| 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 <v8-inspector.h> | |
| 9 #include <v8-profiler.h> | |
| 10 #include <v8.h> | |
| 11 #include <memory> | 8 #include <memory> |
| 12 #include "bindings/core/v8/V8PerIsolateData.h" | 9 #include "bindings/core/v8/V8PerIsolateData.h" |
| 13 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 14 #include "core/inspector/ConsoleTypes.h" | 11 #include "core/inspector/ConsoleTypes.h" |
| 15 #include "platform/Timer.h" | 12 #include "platform/Timer.h" |
| 16 #include "platform/UserGestureIndicator.h" | 13 #include "platform/UserGestureIndicator.h" |
| 17 #include "wtf/Forward.h" | 14 #include "platform/wtf/Forward.h" |
| 18 #include "wtf/Vector.h" | 15 #include "platform/wtf/Vector.h" |
| 16 #include "v8/include/v8-inspector.h" |
| 17 #include "v8/include/v8-profiler.h" |
| 18 #include "v8/include/v8.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class ExecutionContext; | 22 class ExecutionContext; |
| 23 class SourceLocation; | 23 class SourceLocation; |
| 24 | 24 |
| 25 // TODO(dgozman): rename this to ThreadInspector (and subclasses). | 25 // TODO(dgozman): rename this to ThreadInspector (and subclasses). |
| 26 class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient, | 26 class CORE_EXPORT ThreadDebugger : public v8_inspector::V8InspectorClient, |
| 27 public V8PerIsolateData::Data { | 27 public V8PerIsolateData::Data { |
| 28 WTF_MAKE_NONCOPYABLE(ThreadDebugger); | 28 WTF_MAKE_NONCOPYABLE(ThreadDebugger); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 std::unique_ptr<v8::TracingCpuProfiler> v8_tracing_cpu_profiler_; | 108 std::unique_ptr<v8::TracingCpuProfiler> v8_tracing_cpu_profiler_; |
| 109 Vector<std::unique_ptr<Timer<ThreadDebugger>>> timers_; | 109 Vector<std::unique_ptr<Timer<ThreadDebugger>>> timers_; |
| 110 Vector<v8_inspector::V8InspectorClient::TimerCallback> timer_callbacks_; | 110 Vector<v8_inspector::V8InspectorClient::TimerCallback> timer_callbacks_; |
| 111 Vector<void*> timer_data_; | 111 Vector<void*> timer_data_; |
| 112 std::unique_ptr<UserGestureIndicator> user_gesture_indicator_; | 112 std::unique_ptr<UserGestureIndicator> user_gesture_indicator_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // ThreadDebugger_h | 117 #endif // ThreadDebugger_h |
| OLD | NEW |