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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #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 "platform/Timer.h" 9 #include "platform/Timer.h"
10 #include "platform/UserGestureIndicator.h" 10 #include "platform/UserGestureIndicator.h"
11 #include "platform/v8_inspector/public/V8Debugger.h" 11 #include "platform/v8_inspector/public/V8Debugger.h"
12 #include "platform/v8_inspector/public/V8DebuggerClient.h" 12 #include "platform/v8_inspector/public/V8DebuggerClient.h"
13 #include "wtf/Forward.h" 13 #include "wtf/Forward.h"
14 #include "wtf/Vector.h" 14 #include "wtf/Vector.h"
15 #include <memory> 15
16 #include <v8.h> 16 #include <v8.h>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ConsoleMessage; 20 class ConsoleMessage;
21 class WorkerThread; 21 class WorkerThread;
22 22
23 class CORE_EXPORT ThreadDebugger : public V8DebuggerClient { 23 class CORE_EXPORT ThreadDebugger : public V8DebuggerClient {
24 WTF_MAKE_NONCOPYABLE(ThreadDebugger); 24 WTF_MAKE_NONCOPYABLE(ThreadDebugger);
25 public: 25 public:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 private: 60 private:
61 v8::Local<v8::Function> eventLogFunction(); 61 v8::Local<v8::Function> eventLogFunction();
62 62
63 static void setMonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Valu e>&, bool enabled); 63 static void setMonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Valu e>&, bool enabled);
64 static void monitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 64 static void monitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value>& );
65 static void unmonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value >&); 65 static void unmonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value >&);
66 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&); 66 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&);
67 67
68 static void getEventListenersCallback(const v8::FunctionCallbackInfo<v8::Val ue>&); 68 static void getEventListenersCallback(const v8::FunctionCallbackInfo<v8::Val ue>&);
69 69
70 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; 70 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers;
71 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; 71 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks;
72 Vector<void*> m_timerData; 72 Vector<void*> m_timerData;
73 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; 73 OwnPtr<UserGestureIndicator> m_userGestureIndicator;
74 v8::Global<v8::Function> m_eventLogFunction; 74 v8::Global<v8::Function> m_eventLogFunction;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // ThreadDebugger_h 79 #endif // ThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698