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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.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/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index ffcac5b881ecf7c51f8a66f075a0abdc5569772f..3c394afecd4b96989fbeac5f01cace8d803845fe 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -38,6 +38,7 @@
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/WebAddressSpace.h"
#include "public/platform/WebURLRequest.h"
+#include "wtf/CrossThreadCopier.h"
#include "wtf/RefCounted.h"
#include <memory>
@@ -339,4 +340,18 @@ public:
} // namespace blink
+namespace WTF {
+
+template <>
+struct CrossThreadCopier<blink::ResourceRequest> {
+ STATIC_ONLY(CrossThreadCopier);
+ typedef PassedWrapper<std::unique_ptr<blink::CrossThreadResourceRequestData>> Type;
+ PLATFORM_EXPORT static Type copy(const blink::ResourceRequest& request)
+ {
+ return passed(request.copyData());
+ }
+};
+
+} // namespace WTF
+
#endif // ResourceRequest_h

Powered by Google App Engine
This is Rietveld 408576698