| OLD | NEW |
| 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 #ifndef V8StringUtil_h | 5 #ifndef V8StringUtil_h |
| 6 #define V8StringUtil_h | 6 #define V8StringUtil_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | |
| 9 #include "platform/v8_inspector/protocol/Debugger.h" | 8 #include "platform/v8_inspector/protocol/Debugger.h" |
| 9 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
| 10 #include <v8.h> | 10 #include <v8.h> |
| 11 | 11 |
| 12 namespace v8_inspector { | 12 namespace v8_inspector { |
| 13 | 13 |
| 14 class V8InspectorSession; | 14 class V8InspectorSession; |
| 15 | 15 |
| 16 namespace protocol = blink::protocol; | |
| 17 | |
| 18 std::unique_ptr<protocol::Value> toProtocolValue(v8::Local<v8::Context>, v8::Loc
al<v8::Value>, int maxDepth = protocol::Value::maxDepth); | 16 std::unique_ptr<protocol::Value> toProtocolValue(v8::Local<v8::Context>, v8::Loc
al<v8::Value>, int maxDepth = protocol::Value::maxDepth); |
| 19 | 17 |
| 20 v8::Local<v8::String> toV8String(v8::Isolate*, const String16&); | 18 v8::Local<v8::String> toV8String(v8::Isolate*, const String16&); |
| 21 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const String16&); | 19 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const String16&); |
| 22 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const char*); | 20 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const char*); |
| 23 | 21 |
| 24 String16 toProtocolString(v8::Local<v8::String>); | 22 String16 toProtocolString(v8::Local<v8::String>); |
| 25 String16 toProtocolStringWithTypeCheck(v8::Local<v8::Value>); | 23 String16 toProtocolStringWithTypeCheck(v8::Local<v8::Value>); |
| 26 | 24 |
| 27 String16 findSourceURL(const String16& content, bool multiline); | 25 String16 findSourceURL(const String16& content, bool multiline); |
| 28 String16 findSourceMapURL(const String16& content, bool multiline); | 26 String16 findSourceMapURL(const String16& content, bool multiline); |
| 29 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> searchInTextByLine
sImpl(V8InspectorSession*, const String16& text, const String16& query, bool cas
eSensitive, bool isRegex); | 27 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> searchInTextByLine
sImpl(V8InspectorSession*, const String16& text, const String16& query, bool cas
eSensitive, bool isRegex); |
| 30 | 28 |
| 31 } // namespace v8_inspector | 29 } // namespace v8_inspector |
| 32 | 30 |
| 33 | 31 |
| 34 #endif // !defined(V8StringUtil_h) | 32 #endif // !defined(V8StringUtil_h) |
| OLD | NEW |