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