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/v8_inspector/public/StringBuffer.h" | 8 #include "platform/v8_inspector/public/StringBuffer.h" |
9 #include "platform/v8_inspector/public/StringView.h" | 9 #include "platform/v8_inspector/public/StringView.h" |
10 #include "platform/v8_inspector/public/protocol/Debugger.h" | 10 #include "platform/v8_inspector/public/protocol/Debugger.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0; | 25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0; |
26 virtual ~Inspectable() { } | 26 virtual ~Inspectable() { } |
27 }; | 27 }; |
28 virtual void addInspectedObject(std::unique_ptr<Inspectable>) = 0; | 28 virtual void addInspectedObject(std::unique_ptr<Inspectable>) = 0; |
29 | 29 |
30 // Dispatching protocol messages. | 30 // Dispatching protocol messages. |
31 static bool canDispatchMethod(const StringView& method); | 31 static bool canDispatchMethod(const StringView& method); |
32 virtual void dispatchProtocolMessage(const StringView& message) = 0; | 32 virtual void dispatchProtocolMessage(const StringView& message) = 0; |
33 virtual std::unique_ptr<StringBuffer> stateJSON() = 0; | 33 virtual std::unique_ptr<StringBuffer> stateJSON() = 0; |
34 virtual std::unique_ptr<blink::protocol::Array<blink::protocol::Schema::API:
:Domain>> supportedDomains() = 0; | 34 virtual std::vector<std::unique_ptr<protocol::Schema::API::Domain>> supporte
dDomains() = 0; |
35 | 35 |
36 // Debugger actions. | 36 // Debugger actions. |
37 virtual void schedulePauseOnNextStatement(const StringView& breakReason, con
st StringView& breakDetails) = 0; | 37 virtual void schedulePauseOnNextStatement(const StringView& breakReason, con
st StringView& breakDetails) = 0; |
38 virtual void cancelPauseOnNextStatement() = 0; | 38 virtual void cancelPauseOnNextStatement() = 0; |
39 virtual void breakProgram(const StringView& breakReason, const StringView& b
reakDetails) = 0; | 39 virtual void breakProgram(const StringView& breakReason, const StringView& b
reakDetails) = 0; |
40 virtual void setSkipAllPauses(bool) = 0; | 40 virtual void setSkipAllPauses(bool) = 0; |
41 virtual void resume() = 0; | 41 virtual void resume() = 0; |
42 virtual void stepOver() = 0; | 42 virtual void stepOver() = 0; |
43 virtual std::unique_ptr<blink::protocol::Array<blink::protocol::Debugger::AP
I::SearchMatch>> searchInTextByLines(const StringView& text, const StringView& q
uery, bool caseSensitive, bool isRegex) = 0; | 43 virtual std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> s
earchInTextByLines(const StringView& text, const StringView& query, bool caseSen
sitive, bool isRegex) = 0; |
44 | 44 |
45 // Remote objects. | 45 // Remote objects. |
46 virtual std::unique_ptr<blink::protocol::Runtime::API::RemoteObject> wrapObj
ect(v8::Local<v8::Context>, v8::Local<v8::Value>, const StringView& groupName) =
0; | 46 virtual std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(v8:
:Local<v8::Context>, v8::Local<v8::Value>, const StringView& groupName) = 0; |
47 virtual bool unwrapObject(ErrorString*, const StringView& objectId, v8::Loca
l<v8::Value>*, v8::Local<v8::Context>*, std::unique_ptr<StringBuffer>* objectGro
up) = 0; | 47 virtual bool unwrapObject(std::unique_ptr<StringBuffer>* error, const String
View& objectId, v8::Local<v8::Value>*, v8::Local<v8::Context>*, std::unique_ptr<
StringBuffer>* objectGroup) = 0; |
48 virtual void releaseObjectGroup(const StringView&) = 0; | 48 virtual void releaseObjectGroup(const StringView&) = 0; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace v8_inspector | 51 } // namespace v8_inspector |
52 | 52 |
53 #endif // V8InspectorSession_h | 53 #endif // V8InspectorSession_h |
OLD | NEW |