Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/KURL.h

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698