OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8InspectorString_h |
| 6 #define V8InspectorString_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "platform/v8_inspector/public/String.h" |
| 10 #include "wtf/text/StringView.h" |
| 11 #include "wtf/text/WTFString.h" |
| 12 |
| 13 #include <memory> |
| 14 |
| 15 namespace blink { |
| 16 |
| 17 // Note that passed string must outlive the resulting StringView. This implies i
t must not be a temporary object. |
| 18 CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const StringView&); |
| 19 CORE_EXPORT std::unique_ptr<v8_inspector::StringBuffer> toV8InspectorStringBuffe
r(const StringView&); |
| 20 CORE_EXPORT String toCoreString(const v8_inspector::StringView&); |
| 21 CORE_EXPORT String toCoreString(std::unique_ptr<v8_inspector::StringBuffer>); |
| 22 |
| 23 } // namespace blink |
| 24 |
| 25 #endif // V8InspectorString_h |
OLD | NEW |