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/Array.h" |
8 #include "platform/inspector_protocol/Platform.h" | 9 #include "platform/inspector_protocol/Platform.h" |
| 10 #include "platform/v8_inspector/public/protocol/Debugger.h" |
9 #include "platform/v8_inspector/public/protocol/Runtime.h" | 11 #include "platform/v8_inspector/public/protocol/Runtime.h" |
10 | 12 |
11 #include <v8.h> | 13 #include <v8.h> |
12 | 14 |
13 namespace blink { | 15 namespace blink { |
14 | 16 |
15 class PLATFORM_EXPORT V8InspectorSession { | 17 class PLATFORM_EXPORT V8InspectorSession { |
16 public: | 18 public: |
17 virtual ~V8InspectorSession() { } | 19 virtual ~V8InspectorSession() { } |
18 | 20 |
(...skipping 10 matching lines...) Expand all Loading... |
29 virtual void dispatchProtocolMessage(const String16& message) = 0; | 31 virtual void dispatchProtocolMessage(const String16& message) = 0; |
30 virtual String16 stateJSON() = 0; | 32 virtual String16 stateJSON() = 0; |
31 | 33 |
32 // Debugger actions. | 34 // Debugger actions. |
33 virtual void schedulePauseOnNextStatement(const String16& breakReason, const
String16& breakDetails) = 0; | 35 virtual void schedulePauseOnNextStatement(const String16& breakReason, const
String16& breakDetails) = 0; |
34 virtual void cancelPauseOnNextStatement() = 0; | 36 virtual void cancelPauseOnNextStatement() = 0; |
35 virtual void breakProgram(const String16& breakReason, const String16& break
Details) = 0; | 37 virtual void breakProgram(const String16& breakReason, const String16& break
Details) = 0; |
36 virtual void setSkipAllPauses(bool) = 0; | 38 virtual void setSkipAllPauses(bool) = 0; |
37 virtual void resume() = 0; | 39 virtual void resume() = 0; |
38 virtual void stepOver() = 0; | 40 virtual void stepOver() = 0; |
| 41 virtual std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch
>> searchInTextByLines(const String16& text, const String16& query, bool caseSen
sitive, bool isRegex) = 0; |
39 | 42 |
40 // Remote objects. | 43 // Remote objects. |
41 virtual std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(v8:
:Local<v8::Context>, v8::Local<v8::Value>, const String16& groupName) = 0; | 44 virtual std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(v8:
:Local<v8::Context>, v8::Local<v8::Value>, const String16& groupName) = 0; |
42 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; | 45 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; |
43 virtual void releaseObjectGroup(const String16&) = 0; | 46 virtual void releaseObjectGroup(const String16&) = 0; |
44 }; | 47 }; |
45 | 48 |
46 } // namespace blink | 49 } // namespace blink |
47 | 50 |
48 #endif // V8InspectorSession_h | 51 #endif // V8InspectorSession_h |
OLD | NEW |