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 1921413002: [DevTools] Move inspect and copy to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" 11 #include "platform/v8_inspector/V8DebuggerAgentImpl.h"
12 #include "platform/v8_inspector/V8DebuggerImpl.h" 12 #include "platform/v8_inspector/V8DebuggerImpl.h"
13 #include "platform/v8_inspector/V8HeapProfilerAgentImpl.h" 13 #include "platform/v8_inspector/V8HeapProfilerAgentImpl.h"
14 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" 14 #include "platform/v8_inspector/V8ProfilerAgentImpl.h"
15 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" 15 #include "platform/v8_inspector/V8RuntimeAgentImpl.h"
16 #include "platform/v8_inspector/public/V8ContextInfo.h" 16 #include "platform/v8_inspector/public/V8ContextInfo.h"
17 #include "platform/v8_inspector/public/V8DebuggerClient.h" 17 #include "platform/v8_inspector/public/V8DebuggerClient.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 PassOwnPtr<V8InspectorSessionImpl> V8InspectorSessionImpl::create(V8DebuggerImpl * debugger, int contextGroupId) 21 PassOwnPtr<V8InspectorSessionImpl> V8InspectorSessionImpl::create(V8DebuggerImpl * debugger, int contextGroupId)
22 { 22 {
23 return adoptPtr(new V8InspectorSessionImpl(debugger, contextGroupId)); 23 return adoptPtr(new V8InspectorSessionImpl(debugger, contextGroupId));
24 } 24 }
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_client(nullptr) 29 , m_client(nullptr)
30 , m_injectedScriptHost(InjectedScriptHost::create(debugger, this)) 30 , m_injectedScriptHost(InjectedScriptHost::create(debugger))
31 , m_customObjectFormatterEnabled(false) 31 , m_customObjectFormatterEnabled(false)
32 , m_instrumentationCounter(0) 32 , m_instrumentationCounter(0)
33 , m_runtimeAgent(adoptPtr(new V8RuntimeAgentImpl(this))) 33 , m_runtimeAgent(adoptPtr(new V8RuntimeAgentImpl(this)))
34 , m_debuggerAgent(adoptPtr(new V8DebuggerAgentImpl(this))) 34 , m_debuggerAgent(adoptPtr(new V8DebuggerAgentImpl(this)))
35 , m_heapProfilerAgent(adoptPtr(new V8HeapProfilerAgentImpl(this))) 35 , m_heapProfilerAgent(adoptPtr(new V8HeapProfilerAgentImpl(this)))
36 , m_profilerAgent(adoptPtr(new V8ProfilerAgentImpl(this))) 36 , m_profilerAgent(adoptPtr(new V8ProfilerAgentImpl(this)))
37 { 37 {
38 } 38 }
39 39
40 V8InspectorSessionImpl::~V8InspectorSessionImpl() 40 V8InspectorSessionImpl::~V8InspectorSessionImpl()
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 183
184 V8RuntimeAgent::Inspectable* V8InspectorSessionImpl::inspectedObject(unsigned nu m) 184 V8RuntimeAgent::Inspectable* V8InspectorSessionImpl::inspectedObject(unsigned nu m)
185 { 185 {
186 if (num >= m_inspectedObjects.size()) 186 if (num >= m_inspectedObjects.size())
187 return nullptr; 187 return nullptr;
188 return m_inspectedObjects[num].get(); 188 return m_inspectedObjects[num].get();
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698