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 String16WTF_h | 5 #ifndef String16WTF_h |
6 #define String16WTF_h | 6 #define String16WTF_h |
7 | 7 |
8 #include "platform/Decimal.h" | 8 #include "platform/Decimal.h" |
9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
10 #include "wtf/text/StringBuilder.h" | 10 #include "wtf/text/StringBuilder.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 template<> | 103 template<> |
104 struct HashTraits<blink::protocol::String16> : SimpleClassHashTraits<blink::prot
ocol::String16> { | 104 struct HashTraits<blink::protocol::String16> : SimpleClassHashTraits<blink::prot
ocol::String16> { |
105 static const bool hasIsEmptyValueFunction = true; | 105 static const bool hasIsEmptyValueFunction = true; |
106 static bool isEmptyValue(const blink::protocol::String16& a) { return a.impl
().isNull(); } | 106 static bool isEmptyValue(const blink::protocol::String16& a) { return a.impl
().isNull(); } |
107 }; | 107 }; |
108 | 108 |
109 } // namespace WTF | 109 } // namespace WTF |
110 | 110 |
111 #endif // !defined(String16WTF_h) | 111 #endif // !defined(String16WTF_h) |
OLD | NEW |