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

Unified Diff: mojo/public/cpp/bindings/associated_interface_ptr.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/array.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_interface_ptr.h
diff --git a/mojo/public/cpp/bindings/associated_interface_ptr.h b/mojo/public/cpp/bindings/associated_interface_ptr.h
index 9846b33d5cdad2c6c667b16072515c1329599d6f..c4435ee599b73c1e47eb2d9d86f4c656080fb967 100644
--- a/mojo/public/cpp/bindings/associated_interface_ptr.h
+++ b/mojo/public/cpp/bindings/associated_interface_ptr.h
@@ -25,6 +25,8 @@
// InterfacePtr, except that it doesn't own a message pipe handle.
template <typename Interface>
class AssociatedInterfacePtr {
+ DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(AssociatedInterfacePtr)
+
public:
// Constructs an unbound AssociatedInterfacePtr.
AssociatedInterfacePtr() {}
@@ -155,7 +157,6 @@
// Allow AssociatedInterfacePtr<> to be used in boolean expressions, but not
// implicitly convertible to a real bool (which is dangerous).
private:
- // TODO(dcheng): Use an explicit conversion operator.
typedef internal::AssociatedInterfacePtrState<Interface>
AssociatedInterfacePtr::*Testable;
@@ -175,8 +176,6 @@
typedef internal::AssociatedInterfacePtrState<Interface> State;
mutable State internal_state_;
-
- DISALLOW_COPY_AND_ASSIGN(AssociatedInterfacePtr);
};
// Creates an associated interface. The output |ptr| should be used locally
« no previous file with comments | « mojo/public/cpp/bindings/array.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698