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 "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
11 #include "wtf/Assertions.h" | 11 #include "wtf/Assertions.h" |
12 #include "wtf/text/StringBuilder.h" | 12 #include "wtf/text/StringBuilder.h" |
13 #include "wtf/text/StringHash.h" | 13 #include "wtf/text/StringHash.h" |
14 #include "wtf/text/StringView.h" | 14 #include "wtf/text/StringView.h" |
15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
16 | 16 |
| 17 #include <v8-inspector.h> |
17 #include <memory> | 18 #include <memory> |
18 #include <v8-inspector.h> | |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 // Note that passed string must outlive the resulting StringView. This implies | 22 // Note that passed string must outlive the resulting StringView. This implies |
23 // it must not be a temporary object. | 23 // it must not be a temporary object. |
24 CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const StringView&); | 24 CORE_EXPORT v8_inspector::StringView toV8InspectorStringView(const StringView&); |
25 CORE_EXPORT std::unique_ptr<v8_inspector::StringBuffer> | 25 CORE_EXPORT std::unique_ptr<v8_inspector::StringBuffer> |
26 toV8InspectorStringBuffer(const StringView&); | 26 toV8InspectorStringBuffer(const StringView&); |
27 CORE_EXPORT String toCoreString(const v8_inspector::StringView&); | 27 CORE_EXPORT String toCoreString(const v8_inspector::StringView&); |
28 CORE_EXPORT String toCoreString(std::unique_ptr<v8_inspector::StringBuffer>); | 28 CORE_EXPORT String toCoreString(std::unique_ptr<v8_inspector::StringBuffer>); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 namespace std { | 78 namespace std { |
79 template <> | 79 template <> |
80 struct hash<WTF::String> { | 80 struct hash<WTF::String> { |
81 std::size_t operator()(const WTF::String& string) const { | 81 std::size_t operator()(const WTF::String& string) const { |
82 return StringHash::hash(string); | 82 return StringHash::hash(string); |
83 } | 83 } |
84 }; | 84 }; |
85 } // namespace std | 85 } // namespace std |
86 | 86 |
87 #endif // V8InspectorString_h | 87 #endif // V8InspectorString_h |
OLD | NEW |