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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h

Issue 1933573002: [DevTools] Remove last bits of logic from v8 agent wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1913283003
Patch Set: rebased, fixed uninitialized variable Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 V8DebuggerClient_h 5 #ifndef V8DebuggerClient_h
6 #define V8DebuggerClient_h 6 #define V8DebuggerClient_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/v8_inspector/public/ConsoleAPITypes.h" 9 #include "platform/v8_inspector/public/ConsoleAPITypes.h"
10 #include "platform/v8_inspector/public/ConsoleTypes.h" 10 #include "platform/v8_inspector/public/ConsoleTypes.h"
11 #include "platform/v8_inspector/public/V8ContextInfo.h" 11 #include "platform/v8_inspector/public/V8ContextInfo.h"
12 #include "platform/v8_inspector/public/V8EventListenerInfo.h" 12 #include "platform/v8_inspector/public/V8EventListenerInfo.h"
13 #include "wtf/Functional.h" 13 #include "wtf/Functional.h"
14 14
15 #include <v8.h> 15 #include <v8.h>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class PLATFORM_EXPORT V8DebuggerClient { 19 class PLATFORM_EXPORT V8DebuggerClient {
20 public: 20 public:
21 virtual ~V8DebuggerClient() { } 21 virtual ~V8DebuggerClient() { }
22 virtual void runMessageLoopOnPause(int contextGroupId) = 0; 22 virtual void runMessageLoopOnPause(int contextGroupId) = 0;
23 virtual void quitMessageLoopOnPause() = 0; 23 virtual void quitMessageLoopOnPause() = 0;
24 virtual void muteWarningsAndDeprecations() = 0; 24 virtual void muteWarningsAndDeprecations() = 0;
25 virtual void unmuteWarningsAndDeprecations() = 0; 25 virtual void unmuteWarningsAndDeprecations() = 0;
26 virtual void muteConsole() = 0; 26 virtual void muteConsole() = 0;
27 virtual void unmuteConsole() = 0; 27 virtual void unmuteConsole() = 0;
28 virtual void beginUserGesture() = 0;
29 virtual void endUserGesture() = 0;
28 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&) = 0; 30 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&) = 0;
29 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0; 31 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0;
30 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; 32 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0;
31 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; 33 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0;
32 virtual bool isExecutionAllowed() = 0; 34 virtual bool isExecutionAllowed() = 0;
33 virtual double currentTimeMS() = 0; 35 virtual double currentTimeMS() = 0;
34 virtual int ensureDefaultContextInGroup(int contextGroupId) = 0; 36 virtual int ensureDefaultContextInGroup(int contextGroupId) = 0;
35 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) = 0; 37 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) = 0;
36 38
37 virtual void reportMessageToConsole(v8::Local<v8::Context>, MessageType, Mes sageLevel, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* a rguments, unsigned skipArgumentCount, int maxStackSize) = 0; 39 virtual void reportMessageToConsole(v8::Local<v8::Context>, MessageType, Mes sageLevel, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* a rguments, unsigned skipArgumentCount, int maxStackSize) = 0;
38 40
39 virtual void consoleTime(const String16& title) = 0; 41 virtual void consoleTime(const String16& title) = 0;
40 virtual void consoleTimeEnd(const String16& title) = 0; 42 virtual void consoleTimeEnd(const String16& title) = 0;
41 virtual void consoleTimeStamp(const String16& title) = 0; 43 virtual void consoleTimeStamp(const String16& title) = 0;
42 44
43 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con text>, v8::Local<v8::Object> creationContext) = 0; 45 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con text>, v8::Local<v8::Object> creationContext) = 0;
44 46
45 using TimerCallback = Function<void()>; 47 using TimerCallback = Function<void()>;
46 virtual int startRepeatingTimer(double, PassOwnPtr<TimerCallback>) = 0; 48 virtual int startRepeatingTimer(double, PassOwnPtr<TimerCallback>) = 0;
47 virtual void cancelTimer(int) = 0; 49 virtual void cancelTimer(int) = 0;
48 }; 50 };
49 51
50 } // namespace blink 52 } // namespace blink
51 53
52 54
53 #endif // V8DebuggerClient_h 55 #endif // V8DebuggerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698