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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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::Dispatcher::DebuggerCom mandHandler, public V8Debugger::Agent<protocol::Frontend::Debugger> { 16 class PLATFORM_EXPORT V8DebuggerAgent : public protocol::Dispatcher::DebuggerCom mandHandler, public V8Debugger::Agent<protocol::Frontend::Debugger> {
17 public: 17 public:
18 static const char backtraceObjectGroup[]; 18 static const char backtraceObjectGroup[];
19 19
20 static PassOwnPtr<V8DebuggerAgent> create(V8RuntimeAgent*, int contextGroupI d); 20 static PassOwnPtr<V8DebuggerAgent> create(V8RuntimeAgent*, int contextGroupI d);
21 virtual ~V8DebuggerAgent() { } 21 virtual ~V8DebuggerAgent() { }
22 22
23 // API for the embedder to report native activities. 23 // API for the embedder to report native activities.
24 virtual void schedulePauseOnNextStatement(const String& breakReason, PassRef Ptr<JSONObject> data) = 0; 24 virtual void schedulePauseOnNextStatement(const String& breakReason, PassRef Ptr<protocol::DictionaryValue> data) = 0;
25 virtual void cancelPauseOnNextStatement() = 0; 25 virtual void cancelPauseOnNextStatement() = 0;
26 virtual bool canBreakProgram() = 0; 26 virtual bool canBreakProgram() = 0;
27 virtual void breakProgram(const String& breakReason, PassRefPtr<JSONObject> data) = 0; 27 virtual void breakProgram(const String& breakReason, PassRefPtr<protocol::Di ctionaryValue> data) = 0;
28 virtual void breakProgramOnException(const String& breakReason, PassRefPtr<J SONObject> data) = 0; 28 virtual void breakProgramOnException(const String& breakReason, PassRefPtr<p rotocol::DictionaryValue> data) = 0;
29 virtual void willExecuteScript(int scriptId) = 0; 29 virtual void willExecuteScript(int scriptId) = 0;
30 virtual void didExecuteScript() = 0; 30 virtual void didExecuteScript() = 0;
31 virtual void reset() = 0; 31 virtual void reset() = 0;
32 32
33 virtual bool isPaused() = 0; 33 virtual bool isPaused() = 0;
34 virtual bool enabled() = 0; 34 virtual bool enabled() = 0;
35 virtual V8Debugger& debugger() = 0; 35 virtual V8Debugger& debugger() = 0;
36 36
37 // Async call stacks implementation 37 // Async call stacks implementation
38 static const int unknownAsyncOperationId; 38 static const int unknownAsyncOperationId;
39 virtual int traceAsyncOperationStarting(const String& description) = 0; 39 virtual int traceAsyncOperationStarting(const String& description) = 0;
40 virtual void traceAsyncCallbackStarting(int operationId) = 0; 40 virtual void traceAsyncCallbackStarting(int operationId) = 0;
41 virtual void traceAsyncCallbackCompleted() = 0; 41 virtual void traceAsyncCallbackCompleted() = 0;
42 virtual void traceAsyncOperationCompleted(int operationId) = 0; 42 virtual void traceAsyncOperationCompleted(int operationId) = 0;
43 virtual bool trackingAsyncCalls() const = 0; 43 virtual bool trackingAsyncCalls() const = 0;
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 48
49 #endif // V8DebuggerAgent_h 49 #endif // V8DebuggerAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698