| 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" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } | 38 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } |
| 39 V8ProfilerAgentImpl* profilerAgentImpl() { return m_profilerAgent.get(); } | 39 V8ProfilerAgentImpl* profilerAgentImpl() { return m_profilerAgent.get(); } |
| 40 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } | 40 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } |
| 41 int contextGroupId() const { return m_contextGroupId; } | 41 int contextGroupId() const { return m_contextGroupId; } |
| 42 | 42 |
| 43 InjectedScript* findInjectedScript(ErrorString*, int contextId); | 43 InjectedScript* findInjectedScript(ErrorString*, int contextId); |
| 44 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); | 44 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); |
| 45 void reset(); | 45 void reset(); |
| 46 void discardInjectedScripts(); | 46 void discardInjectedScripts(); |
| 47 void reportAllContexts(V8RuntimeAgentImpl*); | 47 void reportAllContexts(V8RuntimeAgentImpl*); |
| 48 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | |
| 49 void releaseObjectGroup(const String16& objectGroup); | 48 void releaseObjectGroup(const String16& objectGroup); |
| 50 void setCustomObjectFormatterEnabled(bool); | 49 void setCustomObjectFormatterEnabled(bool); |
| 51 void changeInstrumentationCounter(int delta); | 50 void changeInstrumentationCounter(int delta); |
| 52 | 51 |
| 53 // V8InspectorSession implementation. | 52 // V8InspectorSession implementation. |
| 54 void setClient(V8InspectorSessionClient*) override; | 53 void setClient(V8InspectorSessionClient*) override; |
| 55 V8DebuggerAgent* debuggerAgent() override; | 54 V8DebuggerAgent* debuggerAgent() override; |
| 56 V8HeapProfilerAgent* heapProfilerAgent() override; | 55 V8HeapProfilerAgent* heapProfilerAgent() override; |
| 57 V8ProfilerAgent* profilerAgent() override; | 56 V8ProfilerAgent* profilerAgent() override; |
| 58 V8RuntimeAgent* runtimeAgent() override; | 57 V8RuntimeAgent* runtimeAgent() override; |
| 58 |
| 59 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); |
| 60 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); |
| 61 static const unsigned kInspectedObjectBufferSize = 5; |
| 62 |
| 59 private: | 63 private: |
| 60 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); | 64 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); |
| 61 | 65 |
| 62 int m_contextGroupId; | 66 int m_contextGroupId; |
| 63 V8DebuggerImpl* m_debugger; | 67 V8DebuggerImpl* m_debugger; |
| 64 V8InspectorSessionClient* m_client; | 68 V8InspectorSessionClient* m_client; |
| 65 OwnPtr<InjectedScriptHost> m_injectedScriptHost; | 69 OwnPtr<InjectedScriptHost> m_injectedScriptHost; |
| 66 bool m_customObjectFormatterEnabled; | 70 bool m_customObjectFormatterEnabled; |
| 67 int m_instrumentationCounter; | 71 int m_instrumentationCounter; |
| 68 | 72 |
| 69 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; | 73 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 70 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 74 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 71 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 75 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 72 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 76 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
| 77 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; |
| 73 }; | 78 }; |
| 74 | 79 |
| 75 } // namespace blink | 80 } // namespace blink |
| 76 | 81 |
| 77 #endif | 82 #endif |
| OLD | NEW |