Index: third_party/WebKit/Source/wtf/text/WTFString.h |
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h |
index 839454d9a9617bcb2d07f052cd6f3bfe88534bf4..f40465cf3c19b5b3ab3f8ed110a79b493c1aa8bc 100644 |
--- a/third_party/WebKit/Source/wtf/text/WTFString.h |
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h |
@@ -26,6 +26,7 @@ |
// on systems without case-sensitive file systems. |
#include "wtf/Allocator.h" |
+#include "wtf/CrossThreadCopier.h" |
#include "wtf/HashTableDeletedValueType.h" |
#include "wtf/WTFExport.h" |
#include "wtf/text/ASCIIFastPath.h" |
@@ -428,6 +429,13 @@ private: |
RefPtr<StringImpl> m_impl; |
}; |
+template <> |
+struct CrossThreadCopier<String> { |
+ STATIC_ONLY(CrossThreadCopier); |
+ typedef String Type; |
+ WTF_EXPORT static Type copy(const String&); |
+}; |
+ |
#undef DISPATCH_CASE_OP |
inline bool operator==(const String& a, const String& b) { return equal(a.impl(), b.impl()); } |