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

Unified Diff: third_party/WebKit/public/platform/WebVector.h

Issue 2160943003: Transfer WebCrypto databuffers across the Blink API using blink::WebVector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebVector.h
diff --git a/third_party/WebKit/public/platform/WebVector.h b/third_party/WebKit/public/platform/WebVector.h
index 27a372417bc19988ab40edee4da2ceb409fb0bf8..f190202d44b1728a06d57315088b1a661fdfe02b 100644
--- a/third_party/WebKit/public/platform/WebVector.h
+++ b/third_party/WebKit/public/platform/WebVector.h
@@ -93,6 +93,11 @@ public:
{
}
+ WebVector(WebVector<T>&& other)
+ {
+ swap(other);
+ }
+
WebVector& operator=(const WebVector& other)
{
if (this != &other)
@@ -100,6 +105,13 @@ public:
return *this;
}
+ WebVector& operator=(WebVector&& other)
+ {
+ if (this != &other)
+ swap(other);
+ return *this;
+ }
+
template <typename C>
WebVector<T>& operator=(const C& other)
{
« no previous file with comments | « third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698