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

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

Issue 2030453002: [DevTools] Support CommandLineAPI in workers and Node.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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"
(...skipping 21 matching lines...) Expand all
32 static void idleFinished(v8::Isolate*); 32 static void idleFinished(v8::Isolate*);
33 33
34 // V8DebuggerClient implementation. 34 // V8DebuggerClient implementation.
35 void beginUserGesture() override; 35 void beginUserGesture() override;
36 void endUserGesture() override; 36 void endUserGesture() override;
37 String16 valueSubtype(v8::Local<v8::Value>) override; 37 String16 valueSubtype(v8::Local<v8::Value>) override;
38 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; 38 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override;
39 bool isExecutionAllowed() override; 39 bool isExecutionAllowed() override;
40 double currentTimeMS() override; 40 double currentTimeMS() override;
41 bool isInspectableHeapObject(v8::Local<v8::Object>) override; 41 bool isInspectableHeapObject(v8::Local<v8::Object>) override;
42 static bool isCommandLineAPIMethod(const String& name);
43 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override; 42 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override;
44 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments , unsigned skipArgumentCount) final; 43 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments , unsigned skipArgumentCount) final;
45 void consoleTime(const String16& title) override; 44 void consoleTime(const String16& title) override;
46 void consoleTimeEnd(const String16& title) override; 45 void consoleTimeEnd(const String16& title) override;
47 void consoleTimeStamp(const String16& title) override; 46 void consoleTimeStamp(const String16& title) override;
48 void startRepeatingTimer(double, V8DebuggerClient::TimerCallback, void* data ) override; 47 void startRepeatingTimer(double, V8DebuggerClient::TimerCallback, void* data ) override;
49 void cancelTimer(void* data) override; 48 void cancelTimer(void* data) override;
50 49
51 V8Debugger* debugger() const { return m_debugger.get(); } 50 V8Debugger* debugger() const { return m_debugger.get(); }
52 virtual bool isWorker() { return true; } 51 virtual bool isWorker() { return true; }
(...skipping 18 matching lines...) Expand all
71 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers; 70 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers;
72 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; 71 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks;
73 Vector<void*> m_timerData; 72 Vector<void*> m_timerData;
74 OwnPtr<UserGestureIndicator> m_userGestureIndicator; 73 OwnPtr<UserGestureIndicator> m_userGestureIndicator;
75 v8::Global<v8::Function> m_eventLogFunction; 74 v8::Global<v8::Function> m_eventLogFunction;
76 }; 75 };
77 76
78 } // namespace blink 77 } // namespace blink
79 78
80 #endif // ThreadDebugger_h 79 #endif // ThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698