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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.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/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index a87900aeeabcc869eda75c8baf9a91a697ac0850..3bbef4a57464b9b9e7f6d90320b0683be0b9b16e 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -457,4 +457,18 @@ public:
} // namespace blink
+namespace WTF {
+
+template <>
+struct CrossThreadCopier<blink::ResourceResponse> {
+ STATIC_ONLY(CrossThreadCopier);
+ typedef PassedWrapper<std::unique_ptr<blink::CrossThreadResourceResponseData>> Type;
+ PLATFORM_EXPORT static Type copy(const blink::ResourceResponse& response)
+ {
+ return passed(response.copyData());
+ }
+};
+
+} // namespace WTF
+
#endif // ResourceResponse_h

Powered by Google App Engine
This is Rietveld 408576698