OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 "src/inspector/V8InspectorSessionImpl.h" | 5 #include "src/inspector/V8InspectorSessionImpl.h" |
6 | 6 |
7 #include "src/inspector/InjectedScript.h" | 7 #include "src/inspector/InjectedScript.h" |
8 #include "src/inspector/InspectedContext.h" | 8 #include "src/inspector/InspectedContext.h" |
9 #include "src/inspector/RemoteObjectId.h" | 9 #include "src/inspector/RemoteObjectId.h" |
10 #include "src/inspector/SearchUtil.h" | 10 #include "src/inspector/SearchUtil.h" |
11 #include "src/inspector/StringUtil.h" | 11 #include "src/inspector/StringUtil.h" |
12 #include "src/inspector/V8ConsoleAgentImpl.h" | 12 #include "src/inspector/V8ConsoleAgentImpl.h" |
13 #include "src/inspector/V8Debugger.h" | 13 #include "src/inspector/V8Debugger.h" |
14 #include "src/inspector/V8DebuggerAgentImpl.h" | 14 #include "src/inspector/V8DebuggerAgentImpl.h" |
15 #include "src/inspector/V8HeapProfilerAgentImpl.h" | 15 #include "src/inspector/V8HeapProfilerAgentImpl.h" |
16 #include "src/inspector/V8InspectorImpl.h" | 16 #include "src/inspector/V8InspectorImpl.h" |
17 #include "src/inspector/V8ProfilerAgentImpl.h" | 17 #include "src/inspector/V8ProfilerAgentImpl.h" |
18 #include "src/inspector/V8RuntimeAgentImpl.h" | 18 #include "src/inspector/V8RuntimeAgentImpl.h" |
19 #include "src/inspector/V8SchemaAgentImpl.h" | 19 #include "src/inspector/V8SchemaAgentImpl.h" |
20 #include "src/inspector/protocol/Protocol.h" | 20 #include "src/inspector/protocol/Protocol.h" |
21 #include "src/inspector/public/V8ContextInfo.h" | |
22 #include "src/inspector/public/V8InspectorClient.h" | |
23 | 21 |
24 namespace v8_inspector { | 22 namespace v8_inspector { |
25 | 23 |
26 // static | 24 // static |
27 bool V8InspectorSession::canDispatchMethod(const StringView& method) { | 25 bool V8InspectorSession::canDispatchMethod(const StringView& method) { |
28 return stringViewStartsWith(method, | 26 return stringViewStartsWith(method, |
29 protocol::Runtime::Metainfo::commandPrefix) || | 27 protocol::Runtime::Metainfo::commandPrefix) || |
30 stringViewStartsWith(method, | 28 stringViewStartsWith(method, |
31 protocol::Debugger::Metainfo::commandPrefix) || | 29 protocol::Debugger::Metainfo::commandPrefix) || |
32 stringViewStartsWith(method, | 30 stringViewStartsWith(method, |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = | 409 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = |
412 searchInTextByLinesImpl(this, toString16(text), toString16(query), | 410 searchInTextByLinesImpl(this, toString16(text), toString16(query), |
413 caseSensitive, isRegex); | 411 caseSensitive, isRegex); |
414 std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> result; | 412 std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> result; |
415 for (size_t i = 0; i < matches.size(); ++i) | 413 for (size_t i = 0; i < matches.size(); ++i) |
416 result.push_back(std::move(matches[i])); | 414 result.push_back(std::move(matches[i])); |
417 return result; | 415 return result; |
418 } | 416 } |
419 | 417 |
420 } // namespace v8_inspector | 418 } // namespace v8_inspector |
OLD | NEW |