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 16 matching lines...) Expand all Loading... |
27 class V8RuntimeAgentImpl; | 27 class V8RuntimeAgentImpl; |
28 | 28 |
29 class V8InspectorSessionImpl : public V8InspectorSession { | 29 class V8InspectorSessionImpl : public V8InspectorSession { |
30 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); | 30 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); |
31 public: | 31 public: |
32 static PassOwnPtr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int contex
tGroupId); | 32 static PassOwnPtr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int contex
tGroupId); |
33 ~V8InspectorSessionImpl(); | 33 ~V8InspectorSessionImpl(); |
34 | 34 |
35 V8DebuggerImpl* debugger() const { return m_debugger; } | 35 V8DebuggerImpl* debugger() const { return m_debugger; } |
36 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } | 36 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } |
| 37 V8ProfilerAgentImpl* profileAgentImpl() { return m_profilerAgent.get(); } |
37 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } | 38 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } |
38 int contextGroupId() const { return m_contextGroupId; } | 39 int contextGroupId() const { return m_contextGroupId; } |
39 | 40 |
40 InjectedScript* findInjectedScript(ErrorString*, int contextId); | 41 InjectedScript* findInjectedScript(ErrorString*, int contextId); |
41 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); | 42 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); |
42 void reset(); | 43 void reset(); |
43 void discardInjectedScripts(); | 44 void discardInjectedScripts(); |
44 void reportAllContexts(V8RuntimeAgentImpl*); | 45 void reportAllContexts(V8RuntimeAgentImpl*); |
45 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | 46 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); |
46 void releaseObjectGroup(const String16& objectGroup); | 47 void releaseObjectGroup(const String16& objectGroup); |
(...skipping 20 matching lines...) Expand all Loading... |
67 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 68 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
68 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 69 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
69 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 70 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
70 | 71 |
71 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; | 72 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace blink | 75 } // namespace blink |
75 | 76 |
76 #endif | 77 #endif |
OLD | NEW |