| 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/String16.h" | 8 #include "platform/inspector_protocol/String16.h" |
| 9 #include "platform/inspector_protocol/Values.h" |
| 9 #include <v8.h> | 10 #include <v8.h> |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 14 std::unique_ptr<protocol::Value> toProtocolValue(v8::Local<v8::Context>, v8::Loc
al<v8::Value>, int maxDepth = protocol::Value::maxDepth); |
| 15 |
| 13 v8::Local<v8::String> toV8String(v8::Isolate*, const String16&); | 16 v8::Local<v8::String> toV8String(v8::Isolate*, const String16&); |
| 14 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const String16&); | 17 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const String16&); |
| 15 | 18 |
| 16 String16 toProtocolString(v8::Local<v8::String>); | 19 String16 toProtocolString(v8::Local<v8::String>); |
| 17 String16 toProtocolStringWithTypeCheck(v8::Local<v8::Value>); | 20 String16 toProtocolStringWithTypeCheck(v8::Local<v8::Value>); |
| 18 | 21 |
| 19 } // namespace blink | 22 } // namespace blink |
| 20 | 23 |
| 21 | 24 |
| 22 #endif // !defined(V8StringUtil_h) | 25 #endif // !defined(V8StringUtil_h) |
| OLD | NEW |