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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.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/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()); }

Powered by Google App Engine
This is Rietveld 408576698