| 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 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 5 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/InjectedScript.h" | 7 #include "platform/v8_inspector/InjectedScript.h" |
| 8 #include "platform/v8_inspector/InjectedScriptHost.h" | 8 #include "platform/v8_inspector/InjectedScriptHost.h" |
| 9 #include "platform/v8_inspector/InspectedContext.h" | 9 #include "platform/v8_inspector/InspectedContext.h" |
| 10 #include "platform/v8_inspector/RemoteObjectId.h" | 10 #include "platform/v8_inspector/RemoteObjectId.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 V8InspectorSessionImpl::V8InspectorSessionImpl(V8DebuggerImpl* debugger, int con
textGroupId) | 26 V8InspectorSessionImpl::V8InspectorSessionImpl(V8DebuggerImpl* debugger, int con
textGroupId) |
| 27 : m_contextGroupId(contextGroupId) | 27 : m_contextGroupId(contextGroupId) |
| 28 , m_debugger(debugger) | 28 , m_debugger(debugger) |
| 29 , m_injectedScriptHost(InjectedScriptHost::create(debugger, this)) | 29 , m_injectedScriptHost(InjectedScriptHost::create(debugger, this)) |
| 30 , m_customObjectFormatterEnabled(false) | 30 , m_customObjectFormatterEnabled(false) |
| 31 , m_runtimeAgent(adoptPtr(new V8RuntimeAgentImpl(this))) | 31 , m_runtimeAgent(adoptPtr(new V8RuntimeAgentImpl(this))) |
| 32 , m_debuggerAgent(adoptPtr(new V8DebuggerAgentImpl(this))) | 32 , m_debuggerAgent(adoptPtr(new V8DebuggerAgentImpl(this))) |
| 33 , m_heapProfilerAgent(adoptPtr(new V8HeapProfilerAgentImpl(this))) | 33 , m_heapProfilerAgent(adoptPtr(new V8HeapProfilerAgentImpl(this))) |
| 34 , m_profilerAgent(adoptPtr(new V8ProfilerAgentImpl(this))) | 34 , m_profilerAgent(adoptPtr(new V8ProfilerAgentImpl(this))) |
| 35 , m_clearConsoleCallback(nullptr) | |
| 36 { | 35 { |
| 37 } | 36 } |
| 38 | 37 |
| 39 V8InspectorSessionImpl::~V8InspectorSessionImpl() | 38 V8InspectorSessionImpl::~V8InspectorSessionImpl() |
| 40 { | 39 { |
| 41 discardInjectedScripts(); | 40 discardInjectedScripts(); |
| 42 m_debugger->disconnect(this); | 41 m_debugger->disconnect(this); |
| 43 } | 42 } |
| 44 | 43 |
| 45 V8DebuggerAgent* V8InspectorSessionImpl::debuggerAgent() | 44 V8DebuggerAgent* V8InspectorSessionImpl::debuggerAgent() |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent) | 156 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent) |
| 158 { | 157 { |
| 159 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); | 158 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); |
| 160 if (!contexts) | 159 if (!contexts) |
| 161 return; | 160 return; |
| 162 for (auto& idContext : *contexts) | 161 for (auto& idContext : *contexts) |
| 163 agent->reportExecutionContextCreated(idContext.second); | 162 agent->reportExecutionContextCreated(idContext.second); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace blink | 165 } // namespace blink |
| OLD | NEW |