OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r
ights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef KURL_h | 26 #ifndef KURL_h |
27 #define KURL_h | 27 #define KURL_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "url/third_party/mozilla/url_parse.h" | 30 #include "url/third_party/mozilla/url_parse.h" |
31 #include "url/url_canon.h" | 31 #include "url/url_canon.h" |
32 #include "wtf/Allocator.h" | 32 #include "wtf/Allocator.h" |
| 33 #include "wtf/CrossThreadCopier.h" |
33 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
34 #include "wtf/HashTableDeletedValueType.h" | 35 #include "wtf/HashTableDeletedValueType.h" |
35 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
36 #include <memory> | 37 #include <memory> |
37 | 38 |
38 namespace WTF { | 39 namespace WTF { |
39 class TextEncoding; | 40 class TextEncoding; |
40 } | 41 } |
41 | 42 |
42 namespace blink { | 43 namespace blink { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 270 |
270 } // namespace blink | 271 } // namespace blink |
271 | 272 |
272 namespace WTF { | 273 namespace WTF { |
273 | 274 |
274 // KURLHash is the default hash for String | 275 // KURLHash is the default hash for String |
275 template<> struct DefaultHash<blink::KURL> { | 276 template<> struct DefaultHash<blink::KURL> { |
276 typedef blink::KURLHash Hash; | 277 typedef blink::KURLHash Hash; |
277 }; | 278 }; |
278 | 279 |
| 280 template <> |
| 281 struct CrossThreadCopier<blink::KURL> { |
| 282 STATIC_ONLY(CrossThreadCopier); |
| 283 typedef blink::KURL Type; |
| 284 PLATFORM_EXPORT static Type copy(const blink::KURL& url) |
| 285 { |
| 286 return url.copy(); |
| 287 } |
| 288 }; |
| 289 |
279 } // namespace WTF | 290 } // namespace WTF |
280 | 291 |
281 #endif // KURL_h | 292 #endif // KURL_h |
OLD | NEW |