| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 V8InspectorSession::Inspectable* inspectedObject(unsigned num); | 90 V8InspectorSession::Inspectable* inspectedObject(unsigned num); |
| 91 static const unsigned kInspectedObjectBufferSize = 5; | 91 static const unsigned kInspectedObjectBufferSize = 5; |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 V8InspectorSessionImpl(V8InspectorImpl*, int contextGroupId, | 94 V8InspectorSessionImpl(V8InspectorImpl*, int contextGroupId, |
| 95 V8Inspector::Channel*, const StringView& state); | 95 V8Inspector::Channel*, const StringView& state); |
| 96 protocol::DictionaryValue* agentState(const String16& name); | 96 protocol::DictionaryValue* agentState(const String16& name); |
| 97 | 97 |
| 98 // protocol::FrontendChannel implementation. | 98 // protocol::FrontendChannel implementation. |
| 99 void sendProtocolResponse(int callId, const String16& message) override; | 99 void sendProtocolResponse( |
| 100 void sendProtocolNotification(const String16& message) override; | 100 int callId, std::unique_ptr<protocol::Serializable> message) override; |
| 101 void sendProtocolNotification( |
| 102 std::unique_ptr<protocol::Serializable> message) override; |
| 101 void flushProtocolNotifications() override; | 103 void flushProtocolNotifications() override; |
| 102 | 104 |
| 103 int m_contextGroupId; | 105 int m_contextGroupId; |
| 104 V8InspectorImpl* m_inspector; | 106 V8InspectorImpl* m_inspector; |
| 105 V8Inspector::Channel* m_channel; | 107 V8Inspector::Channel* m_channel; |
| 106 bool m_customObjectFormatterEnabled; | 108 bool m_customObjectFormatterEnabled; |
| 107 | 109 |
| 108 protocol::UberDispatcher m_dispatcher; | 110 protocol::UberDispatcher m_dispatcher; |
| 109 std::unique_ptr<protocol::DictionaryValue> m_state; | 111 std::unique_ptr<protocol::DictionaryValue> m_state; |
| 110 | 112 |
| 111 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; | 113 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 112 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; | 114 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 113 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 115 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 114 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; | 116 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; |
| 115 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; | 117 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; |
| 116 std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent; | 118 std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent; |
| 117 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> | 119 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> |
| 118 m_inspectedObjects; | 120 m_inspectedObjects; |
| 119 | 121 |
| 120 DISALLOW_COPY_AND_ASSIGN(V8InspectorSessionImpl); | 122 DISALLOW_COPY_AND_ASSIGN(V8InspectorSessionImpl); |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 } // namespace v8_inspector | 125 } // namespace v8_inspector |
| 124 | 126 |
| 125 #endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ | 127 #endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_ |
| OLD | NEW |