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

Unified Diff: dbus/file_descriptor.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
Index: dbus/file_descriptor.h
diff --git a/dbus/file_descriptor.h b/dbus/file_descriptor.h
index f8e86777eafa870c75ec62d5df51f03ea753023e..8fcab2f440f4b00f08784706ea246bb91b375129 100644
--- a/dbus/file_descriptor.h
+++ b/dbus/file_descriptor.h
@@ -7,7 +7,7 @@
#include <memory>
-#include "base/macros.h"
+#include "base/move.h"
#include "dbus/dbus_export.h"
namespace dbus {
@@ -34,6 +34,8 @@
// also allows the caller to do this work on the File thread to conform
// with i/o restrictions.
class CHROME_DBUS_EXPORT FileDescriptor {
+ MOVE_ONLY_TYPE_FOR_CPP_03(FileDescriptor);
+
public:
// This provides a simple way to pass around file descriptors since they must
// be closed on a thread that is allowed to perform I/O.
@@ -80,8 +82,6 @@
int value_;
bool owner_;
bool valid_;
-
- DISALLOW_COPY_AND_ASSIGN(FileDescriptor);
};
using ScopedFileDescriptor =
« no previous file with comments | « content/child/scoped_web_callbacks.h ('k') | extensions/renderer/api/display_source/wifi_display/wifi_display_media_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698