OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 V8InspectorSession_h | 5 #ifndef V8InspectorSession_h |
6 #define V8InspectorSession_h | 6 #define V8InspectorSession_h |
7 | 7 |
8 #include "platform/inspector_protocol/Platform.h" | 8 #include "platform/inspector_protocol/Platform.h" |
9 #include "platform/v8_inspector/protocol/Runtime.h" | 9 #include "platform/v8_inspector/public/protocol/Runtime.h" |
10 | 10 |
11 #include <v8.h> | 11 #include <v8.h> |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class PLATFORM_EXPORT V8InspectorSession { | 15 class PLATFORM_EXPORT V8InspectorSession { |
16 public: | 16 public: |
17 virtual ~V8InspectorSession() { } | 17 virtual ~V8InspectorSession() { } |
18 | 18 |
19 // Cross-context inspectable values (DOM nodes in different worlds, etc.). | 19 // Cross-context inspectable values (DOM nodes in different worlds, etc.). |
(...skipping 13 matching lines...) Expand all Loading... |
33 // Debugger actions. | 33 // Debugger actions. |
34 virtual void schedulePauseOnNextStatement(const String16& breakReason, std::
unique_ptr<protocol::DictionaryValue> data) = 0; | 34 virtual void schedulePauseOnNextStatement(const String16& breakReason, std::
unique_ptr<protocol::DictionaryValue> data) = 0; |
35 virtual void cancelPauseOnNextStatement() = 0; | 35 virtual void cancelPauseOnNextStatement() = 0; |
36 virtual void breakProgram(const String16& breakReason, std::unique_ptr<proto
col::DictionaryValue> data) = 0; | 36 virtual void breakProgram(const String16& breakReason, std::unique_ptr<proto
col::DictionaryValue> data) = 0; |
37 virtual void setSkipAllPauses(bool) = 0; | 37 virtual void setSkipAllPauses(bool) = 0; |
38 virtual void resume() = 0; | 38 virtual void resume() = 0; |
39 virtual void stepOver() = 0; | 39 virtual void stepOver() = 0; |
40 | 40 |
41 // Remote objects. | 41 // Remote objects. |
42 static const char backtraceObjectGroup[]; | 42 static const char backtraceObjectGroup[]; |
43 virtual std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(v8::Loca
l<v8::Context>, v8::Local<v8::Value>, const String16& groupName, bool generatePr
eview) = 0; | 43 virtual std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(v8:
:Local<v8::Context>, v8::Local<v8::Value>, const String16& groupName) = 0; |
44 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; | 44 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; |
45 virtual void releaseObjectGroup(const String16&) = 0; | 45 virtual void releaseObjectGroup(const String16&) = 0; |
46 }; | 46 }; |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif // V8InspectorSession_h | 50 #endif // V8InspectorSession_h |
OLD | NEW |