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

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

Issue 2209603003: [DevTools] Remove V8InspectorSessionClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/inspector_protocol/Parser.h" 7 #include "platform/inspector_protocol/Parser.h"
8 #include "platform/v8_inspector/InjectedScript.h" 8 #include "platform/v8_inspector/InjectedScript.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 13 matching lines...) Expand all
24 // static 24 // static
25 bool V8InspectorSession::canDispatchMethod(const String16& method) 25 bool V8InspectorSession::canDispatchMethod(const String16& method)
26 { 26 {
27 return method.startWith(protocol::Runtime::Metainfo::commandPrefix) 27 return method.startWith(protocol::Runtime::Metainfo::commandPrefix)
28 || method.startWith(protocol::Debugger::Metainfo::commandPrefix) 28 || method.startWith(protocol::Debugger::Metainfo::commandPrefix)
29 || method.startWith(protocol::Profiler::Metainfo::commandPrefix) 29 || method.startWith(protocol::Profiler::Metainfo::commandPrefix)
30 || method.startWith(protocol::HeapProfiler::Metainfo::commandPrefix) 30 || method.startWith(protocol::HeapProfiler::Metainfo::commandPrefix)
31 || method.startWith(protocol::Console::Metainfo::commandPrefix); 31 || method.startWith(protocol::Console::Metainfo::commandPrefix);
32 } 32 }
33 33
34 std::unique_ptr<V8InspectorSessionImpl> V8InspectorSessionImpl::create(V8Inspect orImpl* inspector, int contextGroupId, protocol::FrontendChannel* channel, V8Ins pectorSessionClient* client, const String16* state) 34 std::unique_ptr<V8InspectorSessionImpl> V8InspectorSessionImpl::create(V8Inspect orImpl* inspector, int contextGroupId, protocol::FrontendChannel* channel, const String16* state)
35 { 35 {
36 return wrapUnique(new V8InspectorSessionImpl(inspector, contextGroupId, chan nel, client, state)); 36 return wrapUnique(new V8InspectorSessionImpl(inspector, contextGroupId, chan nel, state));
37 } 37 }
38 38
39 V8InspectorSessionImpl::V8InspectorSessionImpl(V8InspectorImpl* inspector, int c ontextGroupId, protocol::FrontendChannel* channel, V8InspectorSessionClient* cli ent, const String16* savedState) 39 V8InspectorSessionImpl::V8InspectorSessionImpl(V8InspectorImpl* inspector, int c ontextGroupId, protocol::FrontendChannel* channel, const String16* savedState)
40 : m_contextGroupId(contextGroupId) 40 : m_contextGroupId(contextGroupId)
41 , m_inspector(inspector) 41 , m_inspector(inspector)
42 , m_client(client)
43 , m_customObjectFormatterEnabled(false) 42 , m_customObjectFormatterEnabled(false)
44 , m_dispatcher(channel) 43 , m_dispatcher(channel)
45 , m_state(nullptr) 44 , m_state(nullptr)
46 , m_runtimeAgent(nullptr) 45 , m_runtimeAgent(nullptr)
47 , m_debuggerAgent(nullptr) 46 , m_debuggerAgent(nullptr)
48 , m_heapProfilerAgent(nullptr) 47 , m_heapProfilerAgent(nullptr)
49 , m_profilerAgent(nullptr) 48 , m_profilerAgent(nullptr)
50 , m_consoleAgent(nullptr) 49 , m_consoleAgent(nullptr)
51 { 50 {
52 if (savedState) { 51 if (savedState) {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> V8Inspect orSessionImpl::searchInTextByLines(const String16& text, const String16& query, bool caseSensitive, bool isRegex) 313 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> V8Inspect orSessionImpl::searchInTextByLines(const String16& text, const String16& query, bool caseSensitive, bool isRegex)
315 { 314 {
316 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = sear chInTextByLinesImpl(this, text, query, caseSensitive, isRegex); 315 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = sear chInTextByLinesImpl(this, text, query, caseSensitive, isRegex);
317 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> resul t = protocol::Array<protocol::Debugger::API::SearchMatch>::create(); 316 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> resul t = protocol::Array<protocol::Debugger::API::SearchMatch>::create();
318 for (size_t i = 0; i < matches.size(); ++i) 317 for (size_t i = 0; i < matches.size(); ++i)
319 result->addItem(std::move(matches[i])); 318 result->addItem(std::move(matches[i]));
320 return result; 319 return result;
321 } 320 }
322 321
323 } // namespace blink 322 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698