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