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 V8InspectorString_h | 5 #ifndef V8InspectorString_h |
6 #define V8InspectorString_h | 6 #define V8InspectorString_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/Decimal.h" | 9 #include "platform/Decimal.h" |
10 #include "platform/v8_inspector/public/StringBuffer.h" | |
11 #include "platform/v8_inspector/public/StringView.h" | |
12 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
13 #include "wtf/text/StringBuilder.h" | 11 #include "wtf/text/StringBuilder.h" |
14 #include "wtf/text/StringHash.h" | 12 #include "wtf/text/StringHash.h" |
15 #include "wtf/text/StringView.h" | 13 #include "wtf/text/StringView.h" |
16 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
17 | 15 |
18 #include <memory> | 16 #include <memory> |
| 17 #include <v8-inspector.h> |
19 | 18 |
20 namespace blink { | 19 namespace blink { |
21 | 20 |
22 // Note that passed string must outlive the resulting StringView. This implies i
t must not be a temporary object. | 21 // Note that passed string must outlive the resulting StringView. This implies i
t must not be a temporary object. |
23 CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const StringView&); | 22 CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const StringView&); |
24 CORE_EXPORT std::unique_ptr<v8_inspector::StringBuffer> toV8InspectorStringBuffe
r(const StringView&); | 23 CORE_EXPORT std::unique_ptr<v8_inspector::StringBuffer> toV8InspectorStringBuffe
r(const StringView&); |
25 CORE_EXPORT String toCoreString(const v8_inspector::StringView&); | 24 CORE_EXPORT String toCoreString(const v8_inspector::StringView&); |
26 CORE_EXPORT String toCoreString(std::unique_ptr<v8_inspector::StringBuffer>); | 25 CORE_EXPORT String toCoreString(std::unique_ptr<v8_inspector::StringBuffer>); |
27 | 26 |
28 namespace protocol { | 27 namespace protocol { |
(...skipping 23 matching lines...) Expand all Loading... |
52 namespace std { | 51 namespace std { |
53 template<> struct hash<WTF::String> { | 52 template<> struct hash<WTF::String> { |
54 std::size_t operator()(const WTF::String& string) const | 53 std::size_t operator()(const WTF::String& string) const |
55 { | 54 { |
56 return StringHash::hash(string); | 55 return StringHash::hash(string); |
57 } | 56 } |
58 }; | 57 }; |
59 } // namespace std | 58 } // namespace std |
60 | 59 |
61 #endif // V8InspectorString_h | 60 #endif // V8InspectorString_h |
OLD | NEW |