Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp

Issue 1866213002: [DevTools] Move inspect from Inspector to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inspector-connection
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 resetInjectedScripts(); 41 resetInjectedScripts();
43 } 42 }
44 43
45 V8DebuggerAgent* V8InspectorSessionImpl::debuggerAgent() 44 V8DebuggerAgent* V8InspectorSessionImpl::debuggerAgent()
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent) 144 void V8InspectorSessionImpl::reportAllContexts(V8RuntimeAgentImpl* agent)
146 { 145 {
147 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_ contextGroupId); 146 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_ contextGroupId);
148 if (!contexts) 147 if (!contexts)
149 return; 148 return;
150 for (auto& idContext : *contexts) 149 for (auto& idContext : *contexts)
151 agent->reportExecutionContextCreated(idContext.second); 150 agent->reportExecutionContextCreated(idContext.second);
152 } 151 }
153 152
154 } // namespace blink 153 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698