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 |