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 |