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

Unified Diff: mojo/public/cpp/system/handle.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/wtf_array.h ('k') | net/base/file_stream_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/system/handle.h
diff --git a/mojo/public/cpp/system/handle.h b/mojo/public/cpp/system/handle.h
index 59fc03ce1b546bd093073e4a11eba52eb95d4623..d0466b0ddead9ae80b1b8e95964df058fda19b37 100644
--- a/mojo/public/cpp/system/handle.h
+++ b/mojo/public/cpp/system/handle.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/move.h"
#include "mojo/public/c/system/functions.h"
#include "mojo/public/c/system/types.h"
@@ -71,6 +72,8 @@
// like the C++11 |unique_ptr|.
template <class HandleType>
class ScopedHandleBase {
+ MOVE_ONLY_TYPE_FOR_CPP_03(ScopedHandleBase);
+
public:
using RawHandleType = HandleType;
@@ -130,8 +133,6 @@
}
HandleType handle_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedHandleBase);
};
template <typename HandleType>
« no previous file with comments | « mojo/public/cpp/bindings/wtf_array.h ('k') | net/base/file_stream_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698