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 #include "core/inspector/ThreadDebugger.h" | 5 #include "core/inspector/ThreadDebugger.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "bindings/core/v8/SourceLocation.h" | 8 #include "bindings/core/v8/SourceLocation.h" |
8 #include "bindings/core/v8/V8Binding.h" | 9 #include "bindings/core/v8/V8Binding.h" |
9 #include "bindings/core/v8/V8DOMException.h" | 10 #include "bindings/core/v8/V8DOMException.h" |
10 #include "bindings/core/v8/V8DOMTokenList.h" | 11 #include "bindings/core/v8/V8DOMTokenList.h" |
11 #include "bindings/core/v8/V8Event.h" | 12 #include "bindings/core/v8/V8Event.h" |
12 #include "bindings/core/v8/V8EventListener.h" | 13 #include "bindings/core/v8/V8EventListener.h" |
13 #include "bindings/core/v8/V8EventListenerHelper.h" | 14 #include "bindings/core/v8/V8EventListenerHelper.h" |
14 #include "bindings/core/v8/V8EventListenerInfo.h" | 15 #include "bindings/core/v8/V8EventListenerInfo.h" |
15 #include "bindings/core/v8/V8HTMLAllCollection.h" | 16 #include "bindings/core/v8/V8HTMLAllCollection.h" |
16 #include "bindings/core/v8/V8HTMLCollection.h" | 17 #include "bindings/core/v8/V8HTMLCollection.h" |
17 #include "bindings/core/v8/V8Node.h" | 18 #include "bindings/core/v8/V8Node.h" |
18 #include "bindings/core/v8/V8NodeList.h" | 19 #include "bindings/core/v8/V8NodeList.h" |
19 #include "bindings/core/v8/V8ScriptRunner.h" | 20 #include "bindings/core/v8/V8ScriptRunner.h" |
20 #include "core/dom/DocumentUserGestureToken.h" | 21 #include "core/dom/DocumentUserGestureToken.h" |
21 #include "core/inspector/ConsoleMessage.h" | 22 #include "core/inspector/ConsoleMessage.h" |
22 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 23 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
23 #include "core/inspector/InspectorTraceEvents.h" | 24 #include "core/inspector/InspectorTraceEvents.h" |
24 #include "core/inspector/V8InspectorString.h" | 25 #include "core/inspector/V8InspectorString.h" |
25 #include "platform/ScriptForbiddenScope.h" | 26 #include "platform/ScriptForbiddenScope.h" |
26 #include "wtf/CurrentTime.h" | 27 #include "wtf/CurrentTime.h" |
27 #include "wtf/PtrUtil.h" | 28 #include "wtf/PtrUtil.h" |
28 #include <memory> | |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate) | 32 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate) |
33 : m_isolate(isolate), | 33 : m_isolate(isolate), |
34 m_v8Inspector(v8_inspector::V8Inspector::create(isolate, this)), | 34 m_v8Inspector(v8_inspector::V8Inspector::create(isolate, this)), |
35 m_v8TracingCpuProfiler(v8::TracingCpuProfiler::Create(isolate)) {} | 35 m_v8TracingCpuProfiler(v8::TracingCpuProfiler::Create(isolate)) {} |
36 | 36 |
37 ThreadDebugger::~ThreadDebugger() {} | 37 ThreadDebugger::~ThreadDebugger() {} |
38 | 38 |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 void ThreadDebugger::onTimer(TimerBase* timer) { | 481 void ThreadDebugger::onTimer(TimerBase* timer) { |
482 for (size_t index = 0; index < m_timers.size(); ++index) { | 482 for (size_t index = 0; index < m_timers.size(); ++index) { |
483 if (m_timers[index].get() == timer) { | 483 if (m_timers[index].get() == timer) { |
484 m_timerCallbacks[index](m_timerData[index]); | 484 m_timerCallbacks[index](m_timerData[index]); |
485 return; | 485 return; |
486 } | 486 } |
487 } | 487 } |
488 } | 488 } |
489 | 489 |
490 } // namespace blink | 490 } // namespace blink |
OLD | NEW |