| 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/Collections.h" | 9 #include "platform/inspector_protocol/Collections.h" |
| 10 #include "platform/inspector_protocol/String16.h" | 10 #include "platform/inspector_protocol/String16.h" |
| 11 #include "platform/inspector_protocol/TypeBuilder.h" | 11 #include "platform/inspector_protocol/TypeBuilder.h" |
| 12 #include "platform/v8_inspector/public/V8InspectorSession.h" | 12 #include "platform/v8_inspector/public/V8InspectorSession.h" |
| 13 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" | 13 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" |
| 14 #include "platform/v8_inspector/public/V8RuntimeAgent.h" | 14 #include "platform/v8_inspector/public/V8RuntimeAgent.h" |
| 15 #include "wtf/PassOwnPtr.h" | 15 #include "wtf/PassOwnPtr.h" |
| 16 | 16 |
| 17 #include <v8.h> | 17 #include <v8.h> |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 class InjectedScript; | 21 class InjectedScript; |
| 22 class InjectedScriptHost; | |
| 23 class RemoteObjectIdBase; | 22 class RemoteObjectIdBase; |
| 24 class V8DebuggerAgentImpl; | 23 class V8DebuggerAgentImpl; |
| 25 class V8DebuggerImpl; | 24 class V8DebuggerImpl; |
| 26 class V8HeapProfilerAgentImpl; | 25 class V8HeapProfilerAgentImpl; |
| 27 class V8ProfilerAgentImpl; | 26 class V8ProfilerAgentImpl; |
| 28 class V8RuntimeAgentImpl; | 27 class V8RuntimeAgentImpl; |
| 29 | 28 |
| 30 class V8InspectorSessionImpl : public V8InspectorSession { | 29 class V8InspectorSessionImpl : public V8InspectorSession { |
| 31 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); | 30 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); |
| 32 public: | 31 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 59 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | 58 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); |
| 60 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); | 59 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); |
| 61 static const unsigned kInspectedObjectBufferSize = 5; | 60 static const unsigned kInspectedObjectBufferSize = 5; |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); | 63 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); |
| 65 | 64 |
| 66 int m_contextGroupId; | 65 int m_contextGroupId; |
| 67 V8DebuggerImpl* m_debugger; | 66 V8DebuggerImpl* m_debugger; |
| 68 V8InspectorSessionClient* m_client; | 67 V8InspectorSessionClient* m_client; |
| 69 OwnPtr<InjectedScriptHost> m_injectedScriptHost; | |
| 70 bool m_customObjectFormatterEnabled; | 68 bool m_customObjectFormatterEnabled; |
| 71 int m_instrumentationCounter; | 69 int m_instrumentationCounter; |
| 72 | 70 |
| 73 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; | 71 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 74 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 72 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 75 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 73 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 76 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 74 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
| 77 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; | 75 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 } // namespace blink | 78 } // namespace blink |
| 81 | 79 |
| 82 #endif | 80 #endif |
| OLD | NEW |