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 V8DebuggerAgent_h | 5 #ifndef V8DebuggerAgent_h |
6 #define V8DebuggerAgent_h | 6 #define V8DebuggerAgent_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class V8RuntimeAgent; | 14 class V8RuntimeAgent; |
15 | 15 |
16 class PLATFORM_EXPORT V8DebuggerAgent : public protocol::Backend::Debugger, publ
ic V8Debugger::Agent<protocol::Frontend::Debugger> { | 16 class PLATFORM_EXPORT V8DebuggerAgent : public protocol::Backend::Debugger, publ
ic V8Debugger::Agent<protocol::Frontend::Debugger> { |
17 public: | 17 public: |
18 static const char backtraceObjectGroup[]; | |
19 | |
20 virtual ~V8DebuggerAgent() { } | 18 virtual ~V8DebuggerAgent() { } |
21 | |
22 // API for the embedder to report native activities. | |
23 virtual void schedulePauseOnNextStatement(const String16& breakReason, PassO
wnPtr<protocol::DictionaryValue> data) = 0; | |
24 virtual void cancelPauseOnNextStatement() = 0; | |
25 virtual void breakProgram(const String16& breakReason, PassOwnPtr<protocol::
DictionaryValue> data) = 0; | |
26 virtual void breakProgramOnException(const String16& breakReason, PassOwnPtr
<protocol::DictionaryValue> data) = 0; | |
27 | |
28 virtual V8Debugger& debugger() = 0; | |
29 | |
30 // Async call stacks implementation. | |
31 virtual void asyncTaskScheduled(const String16& taskName, void* task, bool r
ecurring) = 0; | |
32 virtual void asyncTaskCanceled(void* task) = 0; | |
33 virtual void asyncTaskStarted(void* task) = 0; | |
34 virtual void asyncTaskFinished(void* task) = 0; | |
35 virtual void allAsyncTasksCanceled() = 0; | |
36 }; | 19 }; |
37 | 20 |
38 } // namespace blink | 21 } // namespace blink |
39 | 22 |
40 | 23 |
41 #endif // V8DebuggerAgent_h | 24 #endif // V8DebuggerAgent_h |
OLD | NEW |