| 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/Allocator.h" | 8 #include "platform/inspector_protocol/Allocator.h" |
| 9 #include "platform/inspector_protocol/DispatcherBase.h" | 9 #include "platform/inspector_protocol/DispatcherBase.h" |
| 10 #include "platform/inspector_protocol/Platform.h" | 10 #include "platform/inspector_protocol/Platform.h" |
| 11 #include "platform/inspector_protocol/String16.h" | 11 #include "platform/inspector_protocol/String16.h" |
| 12 #include "platform/v8_inspector/protocol/Runtime.h" | 12 #include "platform/v8_inspector/protocol/Runtime.h" |
| 13 #include "platform/v8_inspector/public/V8InspectorSession.h" | 13 #include "platform/v8_inspector/public/V8InspectorSession.h" |
| 14 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" | 14 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" |
| 15 | 15 |
| 16 #include <v8.h> | 16 #include <v8.h> |
| 17 | 17 |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class InjectedScript; | 22 class InjectedScript; |
| 23 class RemoteObjectIdBase; | 23 class RemoteObjectIdBase; |
| 24 class V8ConsoleAgentImpl; |
| 24 class V8DebuggerAgentImpl; | 25 class V8DebuggerAgentImpl; |
| 25 class V8DebuggerImpl; | 26 class V8DebuggerImpl; |
| 26 class V8HeapProfilerAgentImpl; | 27 class V8HeapProfilerAgentImpl; |
| 27 class V8ProfilerAgentImpl; | 28 class V8ProfilerAgentImpl; |
| 28 class V8RuntimeAgentImpl; | 29 class V8RuntimeAgentImpl; |
| 29 | 30 |
| 30 class V8InspectorSessionImpl : public V8InspectorSession { | 31 class V8InspectorSessionImpl : public V8InspectorSession { |
| 31 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); | 32 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); |
| 32 public: | 33 public: |
| 33 static std::unique_ptr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int c
ontextGroupId, protocol::FrontendChannel*, V8InspectorSessionClient*, const Stri
ng16* state); | 34 static std::unique_ptr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int c
ontextGroupId, protocol::FrontendChannel*, V8InspectorSessionClient*, const Stri
ng16* state); |
| 34 ~V8InspectorSessionImpl(); | 35 ~V8InspectorSessionImpl(); |
| 35 | 36 |
| 36 V8DebuggerImpl* debugger() const { return m_debugger; } | 37 V8DebuggerImpl* debugger() const { return m_debugger; } |
| 37 V8InspectorSessionClient* client() const { return m_client; } | 38 V8InspectorSessionClient* client() const { return m_client; } |
| 39 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); } |
| 38 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } | 40 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } |
| 39 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } | 41 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } |
| 40 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); } | 42 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); } |
| 41 int contextGroupId() const { return m_contextGroupId; } | 43 int contextGroupId() const { return m_contextGroupId; } |
| 42 | 44 |
| 43 InjectedScript* findInjectedScript(ErrorString*, int contextId); | 45 InjectedScript* findInjectedScript(ErrorString*, int contextId); |
| 44 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); | 46 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); |
| 45 void reset(); | 47 void reset(); |
| 46 void discardInjectedScripts(); | 48 void discardInjectedScripts(); |
| 47 void reportAllContexts(V8RuntimeAgentImpl*); | 49 void reportAllContexts(V8RuntimeAgentImpl*); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 77 bool m_customObjectFormatterEnabled; | 79 bool m_customObjectFormatterEnabled; |
| 78 int m_instrumentationCounter; | 80 int m_instrumentationCounter; |
| 79 | 81 |
| 80 protocol::UberDispatcher m_dispatcher; | 82 protocol::UberDispatcher m_dispatcher; |
| 81 std::unique_ptr<protocol::DictionaryValue> m_state; | 83 std::unique_ptr<protocol::DictionaryValue> m_state; |
| 82 | 84 |
| 83 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; | 85 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 84 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; | 86 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 85 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 87 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 86 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; | 88 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; |
| 89 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; |
| 87 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj
ects; | 90 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj
ects; |
| 88 }; | 91 }; |
| 89 | 92 |
| 90 } // namespace blink | 93 } // namespace blink |
| 91 | 94 |
| 92 #endif | 95 #endif |
| OLD | NEW |