| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void reportAllContexts(V8RuntimeAgentImpl*); | 45 void reportAllContexts(V8RuntimeAgentImpl*); |
| 46 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | 46 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); |
| 47 void releaseObjectGroup(const String16& objectGroup); | 47 void releaseObjectGroup(const String16& objectGroup); |
| 48 void setCustomObjectFormatterEnabled(bool); | 48 void setCustomObjectFormatterEnabled(bool); |
| 49 | 49 |
| 50 // V8InspectorSession implementation. | 50 // V8InspectorSession implementation. |
| 51 V8DebuggerAgent* debuggerAgent() override; | 51 V8DebuggerAgent* debuggerAgent() override; |
| 52 V8HeapProfilerAgent* heapProfilerAgent() override; | 52 V8HeapProfilerAgent* heapProfilerAgent() override; |
| 53 V8ProfilerAgent* profilerAgent() override; | 53 V8ProfilerAgent* profilerAgent() override; |
| 54 V8RuntimeAgent* runtimeAgent() override; | 54 V8RuntimeAgent* runtimeAgent() override; |
| 55 | |
| 56 void setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::ClearConsoleCallback
> callback) { m_clearConsoleCallback = callback; } | |
| 57 V8RuntimeAgent::ClearConsoleCallback* clearConsoleCallback() { return m_clea
rConsoleCallback.get(); } | |
| 58 | |
| 59 private: | 55 private: |
| 60 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); | 56 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); |
| 61 | 57 |
| 62 int m_contextGroupId; | 58 int m_contextGroupId; |
| 63 V8DebuggerImpl* m_debugger; | 59 V8DebuggerImpl* m_debugger; |
| 64 OwnPtr<InjectedScriptHost> m_injectedScriptHost; | 60 OwnPtr<InjectedScriptHost> m_injectedScriptHost; |
| 65 bool m_customObjectFormatterEnabled; | 61 bool m_customObjectFormatterEnabled; |
| 66 | 62 |
| 67 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; | 63 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 68 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 64 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 69 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 65 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 70 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 66 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
| 71 | |
| 72 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; | |
| 73 }; | 67 }; |
| 74 | 68 |
| 75 } // namespace blink | 69 } // namespace blink |
| 76 | 70 |
| 77 #endif | 71 #endif |
| OLD | NEW |