| 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_inspectCallback(nullptr) | |
| 36 , m_clearConsoleCallback(nullptr) | 35 , m_clearConsoleCallback(nullptr) |
| 37 { | 36 { |
| 38 } | 37 } |
| 39 | 38 |
| 40 V8InspectorSessionImpl::~V8InspectorSessionImpl() | 39 V8InspectorSessionImpl::~V8InspectorSessionImpl() |
| 41 { | 40 { |
| 42 discardInjectedScripts(); | 41 discardInjectedScripts(); |
| 43 m_debugger->disconnect(this); | 42 m_debugger->disconnect(this); |
| 44 } | 43 } |
| 45 | 44 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent) | 152 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent) |
| 154 { | 153 { |
| 155 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); | 154 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); |
| 156 if (!contexts) | 155 if (!contexts) |
| 157 return; | 156 return; |
| 158 for (auto& idContext : *contexts) | 157 for (auto& idContext : *contexts) |
| 159 agent->reportExecutionContextCreated(idContext.second); | 158 agent->reportExecutionContextCreated(idContext.second); |
| 160 } | 159 } |
| 161 | 160 |
| 162 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |