OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ |
6 #define V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ | 6 #define V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ |
7 | 7 |
8 #include "src/inspector/Allocator.h" | 8 #include "src/base/macros.h" |
9 #include "src/inspector/protocol/Forward.h" | 9 #include "src/inspector/protocol/Forward.h" |
10 #include "src/inspector/protocol/Runtime.h" | 10 #include "src/inspector/protocol/Runtime.h" |
11 #include "src/inspector/protocol/Schema.h" | 11 #include "src/inspector/protocol/Schema.h" |
12 | 12 |
13 #include "include/v8-inspector.h" | 13 #include "include/v8-inspector.h" |
14 | 14 |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 namespace v8_inspector { | 17 namespace v8_inspector { |
18 | 18 |
19 class InjectedScript; | 19 class InjectedScript; |
20 class RemoteObjectIdBase; | 20 class RemoteObjectIdBase; |
21 class V8ConsoleAgentImpl; | 21 class V8ConsoleAgentImpl; |
22 class V8DebuggerAgentImpl; | 22 class V8DebuggerAgentImpl; |
23 class V8InspectorImpl; | 23 class V8InspectorImpl; |
24 class V8HeapProfilerAgentImpl; | 24 class V8HeapProfilerAgentImpl; |
25 class V8ProfilerAgentImpl; | 25 class V8ProfilerAgentImpl; |
26 class V8RuntimeAgentImpl; | 26 class V8RuntimeAgentImpl; |
27 class V8SchemaAgentImpl; | 27 class V8SchemaAgentImpl; |
28 | 28 |
29 using protocol::ErrorString; | 29 using protocol::ErrorString; |
30 | 30 |
31 class V8InspectorSessionImpl : public V8InspectorSession, | 31 class V8InspectorSessionImpl : public V8InspectorSession, |
32 public protocol::FrontendChannel { | 32 public protocol::FrontendChannel { |
33 V8_INSPECTOR_DISALLOW_COPY(V8InspectorSessionImpl); | 33 DISALLOW_COPY_AND_ASSIGN(V8InspectorSessionImpl); |
34 | 34 |
35 public: | 35 public: |
36 static std::unique_ptr<V8InspectorSessionImpl> create( | 36 static std::unique_ptr<V8InspectorSessionImpl> create( |
37 V8InspectorImpl*, int contextGroupId, V8Inspector::Channel*, | 37 V8InspectorImpl*, int contextGroupId, V8Inspector::Channel*, |
38 const StringView& state); | 38 const StringView& state); |
39 ~V8InspectorSessionImpl(); | 39 ~V8InspectorSessionImpl(); |
40 | 40 |
41 V8InspectorImpl* inspector() const { return m_inspector; } | 41 V8InspectorImpl* inspector() const { return m_inspector; } |
42 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); } | 42 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); } |
43 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } | 43 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; | 117 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; |
118 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; | 118 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; |
119 std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent; | 119 std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent; |
120 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> | 120 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> |
121 m_inspectedObjects; | 121 m_inspectedObjects; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace v8_inspector | 124 } // namespace v8_inspector |
125 | 125 |
126 #endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ | 126 #endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ |
OLD | NEW |