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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/weborigin/KURL.h
diff --git a/third_party/WebKit/Source/platform/weborigin/KURL.h b/third_party/WebKit/Source/platform/weborigin/KURL.h
index abb207fdcebdf796b4717d6072272071f0aad9a6..3fa5da033814f27ce2a7914b4dccd5fe3ae95a76 100644
--- a/third_party/WebKit/Source/platform/weborigin/KURL.h
+++ b/third_party/WebKit/Source/platform/weborigin/KURL.h
@@ -30,6 +30,7 @@
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
#include "wtf/Allocator.h"
+#include "wtf/CrossThreadCopier.h"
#include "wtf/Forward.h"
#include "wtf/HashTableDeletedValueType.h"
#include "wtf/text/WTFString.h"
@@ -276,6 +277,16 @@ template<> struct DefaultHash<blink::KURL> {
typedef blink::KURLHash Hash;
};
+template <>
+struct CrossThreadCopier<blink::KURL> {
+ STATIC_ONLY(CrossThreadCopier);
+ typedef blink::KURL Type;
+ PLATFORM_EXPORT static Type copy(const blink::KURL& url)
+ {
+ return url.copy();
+ }
+};
+
} // namespace WTF
#endif // KURL_h

Powered by Google App Engine
This is Rietveld 408576698