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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceError.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/network/ResourceError.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceError.h b/third_party/WebKit/Source/platform/network/ResourceError.h
index 6dea74de1212aa1de51655ef98a423ebf63d6882..2b08e23e7ed0d0af27d60eaca40600aec257075c 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.h
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h
@@ -29,6 +29,7 @@
#include "platform/PlatformExport.h"
#include "wtf/Allocator.h"
+#include "wtf/CrossThreadCopier.h"
#include "wtf/text/WTFString.h"
#include <iosfwd>
@@ -114,4 +115,18 @@ std::ostream& operator<<(std::ostream&, const ResourceError&);
} // namespace blink
+namespace WTF {
+
+template <>
+struct CrossThreadCopier<blink::ResourceError> {
+ STATIC_ONLY(CrossThreadCopier);
+ typedef blink::ResourceError Type;
+ PLATFORM_EXPORT static Type copy(const blink::ResourceError& error)
+ {
+ return error.copy();
+ }
+};
+
+} // namespace WTF
+
#endif // ResourceError_h

Powered by Google App Engine
This is Rietveld 408576698