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

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

Issue 2199943004: [DevTools] Rename V8Debugger to V8Inspector. (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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8Debugger_h
6 #define V8Debugger_h
7
8 #include "platform/inspector_protocol/Platform.h"
9 #include "platform/inspector_protocol/String16.h"
10
11 #include <v8.h>
12
13 namespace blink {
14
15 class V8ContextInfo;
16 class V8DebuggerClient;
17 class V8InspectorSession;
18 class V8InspectorSessionClient;
19 class V8StackTrace;
20
21 namespace protocol {
22 class FrontendChannel;
23 }
24
25 class PLATFORM_EXPORT V8Debugger {
26 public:
27 static std::unique_ptr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*);
28 virtual ~V8Debugger() { }
29
30 // Contexts instrumentation.
31 virtual void contextCreated(const V8ContextInfo&) = 0;
32 virtual void contextDestroyed(v8::Local<v8::Context>) = 0;
33 virtual void resetContextGroup(int contextGroupId) = 0;
34
35 // Various instrumentation.
36 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0;
37 virtual void didExecuteScript(v8::Local<v8::Context>) = 0;
38 virtual void idleStarted() = 0;
39 virtual void idleFinished() = 0;
40
41 // Async stack traces instrumentation.
42 virtual void asyncTaskScheduled(const String16& taskName, void* task, bool r ecurring) = 0;
43 virtual void asyncTaskCanceled(void* task) = 0;
44 virtual void asyncTaskStarted(void* task) = 0;
45 virtual void asyncTaskFinished(void* task) = 0;
46 virtual void allAsyncTasksCanceled() = 0;
47
48 // Exceptions instrumentation.
49 virtual unsigned exceptionThrown(v8::Local<v8::Context>, const String16& mes sage, v8::Local<v8::Value> exception, const String16& detailedMessage, const Str ing16& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackT race>, int scriptId) = 0;
50 virtual void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const String16& message) = 0;
51
52 // API methods.
53 virtual std::unique_ptr<V8InspectorSession> connect(int contextGroupId, prot ocol::FrontendChannel*, V8InspectorSessionClient*, const String16* state) = 0;
54 virtual std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTr ace>) = 0;
55 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0;
56 };
57
58 } // namespace blink
59
60
61 #endif // V8Debugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698