Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "bindings/core/v8/ScriptCallStack.h" 7 #include "bindings/core/v8/ScriptCallStack.h"
8 #include "bindings/core/v8/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "bindings/core/v8/V8Binding.h" 9 #include "bindings/core/v8/V8Binding.h"
10 #include "bindings/core/v8/V8DOMException.h" 10 #include "bindings/core/v8/V8DOMException.h"
11 #include "bindings/core/v8/V8DOMTokenList.h" 11 #include "bindings/core/v8/V8DOMTokenList.h"
12 #include "bindings/core/v8/V8Event.h" 12 #include "bindings/core/v8/V8Event.h"
13 #include "bindings/core/v8/V8EventListener.h" 13 #include "bindings/core/v8/V8EventListener.h"
14 #include "bindings/core/v8/V8EventListenerInfo.h" 14 #include "bindings/core/v8/V8EventListenerInfo.h"
15 #include "bindings/core/v8/V8EventListenerList.h" 15 #include "bindings/core/v8/V8EventListenerList.h"
16 #include "bindings/core/v8/V8HTMLAllCollection.h" 16 #include "bindings/core/v8/V8HTMLAllCollection.h"
17 #include "bindings/core/v8/V8HTMLCollection.h" 17 #include "bindings/core/v8/V8HTMLCollection.h"
18 #include "bindings/core/v8/V8Node.h" 18 #include "bindings/core/v8/V8Node.h"
19 #include "bindings/core/v8/V8NodeList.h" 19 #include "bindings/core/v8/V8NodeList.h"
20 #include "core/inspector/ConsoleMessage.h" 20 #include "core/inspector/ConsoleMessage.h"
21 #include "core/inspector/InspectorDOMDebuggerAgent.h" 21 #include "core/inspector/InspectorDOMDebuggerAgent.h"
22 #include "core/inspector/InspectorTraceEvents.h" 22 #include "core/inspector/InspectorTraceEvents.h"
23 #include "core/inspector/ScriptArguments.h" 23 #include "core/inspector/ScriptArguments.h"
24 #include "platform/ScriptForbiddenScope.h" 24 #include "platform/ScriptForbiddenScope.h"
25 #include "wtf/CurrentTime.h" 25 #include "wtf/CurrentTime.h"
26 #include "wtf/OwnPtr.h"
26 27
27 namespace blink { 28 namespace blink {
28 29
29 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate) 30 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate)
30 : m_isolate(isolate) 31 : m_isolate(isolate)
31 , m_debugger(V8Debugger::create(isolate, this)) 32 , m_debugger(V8Debugger::create(isolate, this))
32 { 33 {
33 } 34 }
34 35
35 ThreadDebugger::~ThreadDebugger() 36 ThreadDebugger::~ThreadDebugger()
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 { 390 {
390 for (size_t index = 0; index < m_timers.size(); ++index) { 391 for (size_t index = 0; index < m_timers.size(); ++index) {
391 if (m_timers[index] == timer) { 392 if (m_timers[index] == timer) {
392 m_timerCallbacks[index](m_timerData[index]); 393 m_timerCallbacks[index](m_timerData[index]);
393 return; 394 return;
394 } 395 }
395 } 396 }
396 } 397 }
397 398
398 } // namespace blink 399 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698