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

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

Issue 2179683002: [DevTools] Cleanup v8_inspector API part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/inspector_protocol/Platform.h" 8 #include "platform/inspector_protocol/Platform.h"
9 #include "platform/v8_inspector/public/V8ConsoleTypes.h" 9 #include "platform/v8_inspector/public/V8ConsoleTypes.h"
10 #include "platform/v8_inspector/public/V8ContextInfo.h" 10 #include "platform/v8_inspector/public/V8ContextInfo.h"
11 11
12 #include <v8.h> 12 #include <v8.h>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class V8StackTrace; 16 class V8StackTrace;
17 17
18 class PLATFORM_EXPORT V8DebuggerClient { 18 class PLATFORM_EXPORT V8DebuggerClient {
19 public: 19 public:
20 virtual ~V8DebuggerClient() { } 20 virtual ~V8DebuggerClient() { }
21 virtual void runMessageLoopOnPause(int contextGroupId) = 0; 21 virtual void runMessageLoopOnPause(int contextGroupId) = 0;
22 virtual void quitMessageLoopOnPause() = 0; 22 virtual void quitMessageLoopOnPause() = 0;
23 virtual void muteWarningsAndDeprecations(int contextGroupId) = 0; 23 virtual void muteWarningsAndDeprecations(int contextGroupId) = 0;
pfeldman 2016/07/25 17:33:30 Now that runtime errors are handled in v8_inspecto
24 virtual void unmuteWarningsAndDeprecations(int contextGroupId) = 0; 24 virtual void unmuteWarningsAndDeprecations(int contextGroupId) = 0;
pfeldman 2016/07/25 17:33:30 ditto
25 virtual void beginUserGesture() = 0; 25 virtual void beginUserGesture() = 0;
26 virtual void endUserGesture() = 0; 26 virtual void endUserGesture() = 0;
27 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0;
28 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; 27 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0;
29 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; 28 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0;
30 virtual bool isExecutionAllowed() = 0; 29 virtual bool isExecutionAllowed() = 0;
pfeldman 2016/07/25 17:33:29 You have a TODO to remove this.
31 virtual double currentTimeMS() = 0; 30 virtual double currentTimeMS() = 0;
pfeldman 2016/07/25 17:33:30 Should we extract Platform from Client?
32 virtual v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupI d) = 0; 31 virtual v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupI d) = 0;
pfeldman 2016/07/25 17:33:30 This is still not pretty.
33 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) = 0; 32 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) = 0;
pfeldman 2016/07/25 17:33:29 I'd rather optionally install implementation of th
34 virtual void enableAsyncInstrumentation() = 0; 33 virtual void enableAsyncInstrumentation() = 0;
pfeldman 2016/07/25 17:33:30 I don't think we save anything with these, lets re
35 virtual void disableAsyncInstrumentation() = 0; 34 virtual void disableAsyncInstrumentation() = 0;
pfeldman 2016/07/25 17:33:30 ditto
35 virtual void beginEnsureAllContextsInGroup(int contextGroupId) = 0;
pfeldman 2016/07/25 17:33:30 I don't get what it does from its name.
36 virtual void endEnsureAllContextsInGroup(int contextGroupId) = 0;
36 37
37 virtual void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Loc al<v8::Object>) = 0; 38 virtual void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Loc al<v8::Object>) = 0;
38 39
39 virtual void consoleTime(const String16& title) = 0; 40 virtual void consoleTime(const String16& title) = 0;
pfeldman 2016/07/25 17:33:30 TODO: remove these since tracing is available in v
40 virtual void consoleTimeEnd(const String16& title) = 0; 41 virtual void consoleTimeEnd(const String16& title) = 0;
41 virtual void consoleTimeStamp(const String16& title) = 0; 42 virtual void consoleTimeStamp(const String16& title) = 0;
42 virtual void consoleAPIMessage(int contextGroupId, MessageLevel, const Strin g16& message, const String16& url, unsigned lineNumber, unsigned columnNumber, V 8StackTrace*) = 0; 43 virtual void consoleAPIMessage(int contextGroupId, MessageLevel, const Strin g16& message, const String16& url, unsigned lineNumber, unsigned columnNumber, V 8StackTrace*) = 0;
43 44
44 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con text>) = 0; 45 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con text>) = 0;
45 46
46 typedef void (*TimerCallback)(void*); 47 typedef void (*TimerCallback)(void*);
47 virtual void startRepeatingTimer(double, TimerCallback, void* data) = 0; 48 virtual void startRepeatingTimer(double, TimerCallback, void* data) = 0;
pfeldman 2016/07/25 17:33:30 Looks like platform.
48 virtual void cancelTimer(void* data) = 0; 49 virtual void cancelTimer(void* data) = 0;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 54
54 #endif // V8DebuggerClient_h 55 #endif // V8DebuggerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698