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

Unified Diff: mojo/public/cpp/bindings/wtf_array.h

Issue 2047633002: Revert of Remove base/move.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « mojo/public/cpp/bindings/tests/container_test_util.h ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/wtf_array.h
diff --git a/mojo/public/cpp/bindings/wtf_array.h b/mojo/public/cpp/bindings/wtf_array.h
index e45d5b012afe36f56373d0b7bc317aa920e60d97..0e157f2ceea1788bcb1e846dcf99b39ee0f8646b 100644
--- a/mojo/public/cpp/bindings/wtf_array.h
+++ b/mojo/public/cpp/bindings/wtf_array.h
@@ -8,7 +8,7 @@
#include <stddef.h>
#include <utility>
-#include "base/macros.h"
+#include "base/move.h"
#include "mojo/public/cpp/bindings/lib/array_internal.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/template_util.h"
@@ -25,6 +25,8 @@
// - method PassStorage() passes the underlying WTF::Vector.
template <typename T>
class WTFArray {
+ MOVE_ONLY_TYPE_FOR_CPP_03(WTFArray);
+
public:
using Data_ = internal::Array_Data<
typename internal::GetDataTypeAsArrayElement<T>::Data>;
@@ -173,7 +175,6 @@
}
private:
- // TODO(dcheng): Use an explicit conversion operator.
typedef WTF::Vector<T> WTFArray::*Testable;
public:
@@ -199,8 +200,6 @@
WTF::Vector<T> vec_;
bool is_null_;
-
- DISALLOW_COPY_AND_ASSIGN(WTFArray);
};
} // namespace mojo
« no previous file with comments | « mojo/public/cpp/bindings/tests/container_test_util.h ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698