OLD | NEW |
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 V8Debugger_h | 5 #ifndef V8Debugger_h |
6 #define V8Debugger_h | 6 #define V8Debugger_h |
7 | 7 |
8 #include "platform/inspector_protocol/Platform.h" | 8 #include "platform/inspector_protocol/Platform.h" |
9 #include "platform/inspector_protocol/String16.h" | 9 #include "platform/inspector_protocol/String16.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void contextCreated(const V8ContextInfo&) = 0; | 31 virtual void contextCreated(const V8ContextInfo&) = 0; |
32 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; | 32 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; |
33 virtual void resetContextGroup(int contextGroupId) = 0; | 33 virtual void resetContextGroup(int contextGroupId) = 0; |
34 | 34 |
35 // Various instrumentation. | 35 // Various instrumentation. |
36 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0; | 36 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0; |
37 virtual void didExecuteScript(v8::Local<v8::Context>) = 0; | 37 virtual void didExecuteScript(v8::Local<v8::Context>) = 0; |
38 virtual void idleStarted() = 0; | 38 virtual void idleStarted() = 0; |
39 virtual void idleFinished() = 0; | 39 virtual void idleFinished() = 0; |
40 | 40 |
41 // Async call stacks instrumentation. | 41 // Async stack traces instrumentation. |
42 virtual void asyncTaskScheduled(const String16& taskName, void* task, bool r
ecurring) = 0; | 42 virtual void asyncTaskScheduled(const String16& taskName, void* task, bool r
ecurring) = 0; |
43 virtual void asyncTaskCanceled(void* task) = 0; | 43 virtual void asyncTaskCanceled(void* task) = 0; |
44 virtual void asyncTaskStarted(void* task) = 0; | 44 virtual void asyncTaskStarted(void* task) = 0; |
45 virtual void asyncTaskFinished(void* task) = 0; | 45 virtual void asyncTaskFinished(void* task) = 0; |
46 virtual void allAsyncTasksCanceled() = 0; | 46 virtual void allAsyncTasksCanceled() = 0; |
47 | 47 |
48 // Runtime instrumentation. | 48 // Exceptions instrumentation. |
49 // TODO(dgozman): can we pass exception object? | 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 exceptionThrown(int contextGroupId, const String16& errorMessag
e, const String16& url, unsigned lineNumber, unsigned columnNumber, std::unique_
ptr<V8StackTrace>, int scriptId) = 0; | 50 virtual void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId,
const String16& message) = 0; |
51 virtual unsigned promiseRejected(v8::Local<v8::Context>, const String16& err
orMessage, v8::Local<v8::Value> exception, const String16& url, unsigned lineNum
ber, unsigned columnNumber, std::unique_ptr<V8StackTrace>, int scriptId) = 0; | |
52 virtual void promiseRejectionRevoked(v8::Local<v8::Context>, unsigned promis
eRejectionId) = 0; | |
53 | 51 |
54 // API methods. | 52 // API methods. |
55 virtual std::unique_ptr<V8InspectorSession> connect(int contextGroupId, prot
ocol::FrontendChannel*, V8InspectorSessionClient*, const String16* state) = 0; | 53 virtual std::unique_ptr<V8InspectorSession> connect(int contextGroupId, prot
ocol::FrontendChannel*, V8InspectorSessionClient*, const String16* state) = 0; |
56 virtual std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTr
ace>) = 0; | 54 virtual std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTr
ace>) = 0; |
57 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; | 55 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; |
58 }; | 56 }; |
59 | 57 |
60 } // namespace blink | 58 } // namespace blink |
61 | 59 |
62 | 60 |
63 #endif // V8Debugger_h | 61 #endif // V8Debugger_h |
OLD | NEW |