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

Side by Side Diff: mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h

Issue 2038273002: Remove base/move.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: is_constructible 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 unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/bindings/map.h ('k') | mojo/public/cpp/bindings/strong_binding.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/move.h"
11 #include "mojo/public/cpp/bindings/lib/interface_id.h" 10 #include "mojo/public/cpp/bindings/lib/interface_id.h"
12 11
13 namespace mojo { 12 namespace mojo {
14 13
15 namespace internal { 14 namespace internal {
16 class MultiplexRouter; 15 class MultiplexRouter;
17 } 16 }
18 17
19 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the 18 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the
20 // implementation side or the client side. 19 // implementation side or the client side.
21 class ScopedInterfaceEndpointHandle { 20 class ScopedInterfaceEndpointHandle {
22 DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(ScopedInterfaceEndpointHandle);
23
24 public: 21 public:
25 // Creates an invalid endpoint handle. 22 // Creates an invalid endpoint handle.
26 ScopedInterfaceEndpointHandle(); 23 ScopedInterfaceEndpointHandle();
27 24
28 ScopedInterfaceEndpointHandle(ScopedInterfaceEndpointHandle&& other); 25 ScopedInterfaceEndpointHandle(ScopedInterfaceEndpointHandle&& other);
29 26
30 ~ScopedInterfaceEndpointHandle(); 27 ~ScopedInterfaceEndpointHandle();
31 28
32 ScopedInterfaceEndpointHandle& operator=( 29 ScopedInterfaceEndpointHandle& operator=(
33 ScopedInterfaceEndpointHandle&& other); 30 ScopedInterfaceEndpointHandle&& other);
(...skipping 22 matching lines...) Expand all
56 // If |is_local| is false, this handle is meant to be passed over |router| to 53 // If |is_local| is false, this handle is meant to be passed over |router| to
57 // the remote side. 54 // the remote side.
58 ScopedInterfaceEndpointHandle( 55 ScopedInterfaceEndpointHandle(
59 internal::InterfaceId id, 56 internal::InterfaceId id,
60 bool is_local, 57 bool is_local,
61 scoped_refptr<internal::MultiplexRouter> router); 58 scoped_refptr<internal::MultiplexRouter> router);
62 59
63 internal::InterfaceId id_; 60 internal::InterfaceId id_;
64 bool is_local_; 61 bool is_local_;
65 scoped_refptr<internal::MultiplexRouter> router_; 62 scoped_refptr<internal::MultiplexRouter> router_;
63
64 DISALLOW_COPY_AND_ASSIGN(ScopedInterfaceEndpointHandle);
66 }; 65 };
67 66
68 } // namespace mojo 67 } // namespace mojo
69 68
70 #endif // MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ 69 #endif // MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/map.h ('k') | mojo/public/cpp/bindings/strong_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698