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