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

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

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (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/v8_inspector/InjectedScript.h" 7 #include "platform/v8_inspector/InjectedScript.h"
8 #include "platform/v8_inspector/InspectedContext.h" 8 #include "platform/v8_inspector/InspectedContext.h"
9 #include "platform/v8_inspector/RemoteObjectId.h" 9 #include "platform/v8_inspector/RemoteObjectId.h"
10 #include "platform/v8_inspector/V8ConsoleAgentImpl.h" 10 #include "platform/v8_inspector/V8ConsoleAgentImpl.h"
11 #include "platform/v8_inspector/V8Debugger.h" 11 #include "platform/v8_inspector/V8Debugger.h"
12 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" 12 #include "platform/v8_inspector/V8DebuggerAgentImpl.h"
13 #include "platform/v8_inspector/V8HeapProfilerAgentImpl.h" 13 #include "platform/v8_inspector/V8HeapProfilerAgentImpl.h"
14 #include "platform/v8_inspector/V8InspectorImpl.h" 14 #include "platform/v8_inspector/V8InspectorImpl.h"
15 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" 15 #include "platform/v8_inspector/V8ProfilerAgentImpl.h"
16 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" 16 #include "platform/v8_inspector/V8RuntimeAgentImpl.h"
17 #include "platform/v8_inspector/V8StringUtil.h" 17 #include "platform/v8_inspector/V8StringUtil.h"
18 #include "platform/v8_inspector/public/V8ContextInfo.h" 18 #include "platform/v8_inspector/public/V8ContextInfo.h"
19 #include "platform/v8_inspector/public/V8InspectorClient.h" 19 #include "platform/v8_inspector/public/V8InspectorClient.h"
20 20
21 namespace blink { 21 namespace v8_inspector {
22 22
23 // static 23 // static
24 bool V8InspectorSession::canDispatchMethod(const String16& method) 24 bool V8InspectorSession::canDispatchMethod(const String16& method)
25 { 25 {
26 return method.startsWith(protocol::Runtime::Metainfo::commandPrefix) 26 return method.startsWith(protocol::Runtime::Metainfo::commandPrefix)
27 || method.startsWith(protocol::Debugger::Metainfo::commandPrefix) 27 || method.startsWith(protocol::Debugger::Metainfo::commandPrefix)
28 || method.startsWith(protocol::Profiler::Metainfo::commandPrefix) 28 || method.startsWith(protocol::Profiler::Metainfo::commandPrefix)
29 || method.startsWith(protocol::HeapProfiler::Metainfo::commandPrefix) 29 || method.startsWith(protocol::HeapProfiler::Metainfo::commandPrefix)
30 || method.startsWith(protocol::Console::Metainfo::commandPrefix); 30 || method.startsWith(protocol::Console::Metainfo::commandPrefix);
31 } 31 }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> V8Inspect orSessionImpl::searchInTextByLines(const String16& text, const String16& query, bool caseSensitive, bool isRegex) 312 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> V8Inspect orSessionImpl::searchInTextByLines(const String16& text, const String16& query, bool caseSensitive, bool isRegex)
313 { 313 {
314 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = sear chInTextByLinesImpl(this, text, query, caseSensitive, isRegex); 314 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = sear chInTextByLinesImpl(this, text, query, caseSensitive, isRegex);
315 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> resul t = protocol::Array<protocol::Debugger::API::SearchMatch>::create(); 315 std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> resul t = protocol::Array<protocol::Debugger::API::SearchMatch>::create();
316 for (size_t i = 0; i < matches.size(); ++i) 316 for (size_t i = 0; i < matches.size(); ++i)
317 result->addItem(std::move(matches[i])); 317 result->addItem(std::move(matches[i]));
318 return result; 318 return result;
319 } 319 }
320 320
321 } // namespace blink 321 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698