| 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 V8InspectorSessionImpl_h | 5 #ifndef V8InspectorSessionImpl_h |
| 6 #define V8InspectorSessionImpl_h | 6 #define V8InspectorSessionImpl_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 9 #include "platform/v8_inspector/protocol/Runtime.h" | 9 #include "platform/v8_inspector/protocol/Runtime.h" |
| 10 #include "platform/v8_inspector/public/V8InspectorSession.h" | 10 #include "platform/v8_inspector/public/V8InspectorSession.h" |
| 11 | 11 |
| 12 #include <v8.h> | 12 #include <v8.h> |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace v8_inspector { |
| 17 | 17 |
| 18 class InjectedScript; | 18 class InjectedScript; |
| 19 class RemoteObjectIdBase; | 19 class RemoteObjectIdBase; |
| 20 class V8ConsoleAgentImpl; | 20 class V8ConsoleAgentImpl; |
| 21 class V8DebuggerAgentImpl; | 21 class V8DebuggerAgentImpl; |
| 22 class V8InspectorImpl; | 22 class V8InspectorImpl; |
| 23 class V8HeapProfilerAgentImpl; | 23 class V8HeapProfilerAgentImpl; |
| 24 class V8ProfilerAgentImpl; | 24 class V8ProfilerAgentImpl; |
| 25 class V8RuntimeAgentImpl; | 25 class V8RuntimeAgentImpl; |
| 26 | 26 |
| 27 namespace protocol = blink::protocol; |
| 28 |
| 27 class V8InspectorSessionImpl : public V8InspectorSession { | 29 class V8InspectorSessionImpl : public V8InspectorSession { |
| 28 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); | 30 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); |
| 29 public: | 31 public: |
| 30 static std::unique_ptr<V8InspectorSessionImpl> create(V8InspectorImpl*, int
contextGroupId, protocol::FrontendChannel*, const String16* state); | 32 static std::unique_ptr<V8InspectorSessionImpl> create(V8InspectorImpl*, int
contextGroupId, protocol::FrontendChannel*, const String16* state); |
| 31 ~V8InspectorSessionImpl(); | 33 ~V8InspectorSessionImpl(); |
| 32 | 34 |
| 33 V8InspectorImpl* inspector() const { return m_inspector; } | 35 V8InspectorImpl* inspector() const { return m_inspector; } |
| 34 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); } | 36 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); } |
| 35 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } | 37 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } |
| 36 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } | 38 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 std::unique_ptr<protocol::DictionaryValue> m_state; | 78 std::unique_ptr<protocol::DictionaryValue> m_state; |
| 77 | 79 |
| 78 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; | 80 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 79 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; | 81 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 80 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 82 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 81 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; | 83 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; |
| 82 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; | 84 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; |
| 83 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj
ects; | 85 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj
ects; |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace blink | 88 } // namespace v8_inspector |
| 87 | 89 |
| 88 #endif | 90 #endif |
| OLD | NEW |