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

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

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)
Patch Set: Fix wording Created 4 years, 2 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
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 "mojo/public/cpp/bindings/bindings_export.h"
10 #include "mojo/public/cpp/bindings/interface_id.h" 11 #include "mojo/public/cpp/bindings/interface_id.h"
11 12
12 namespace mojo { 13 namespace mojo {
13 14
14 class AssociatedGroupController; 15 class AssociatedGroupController;
15 16
16 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the 17 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the
17 // implementation side or the client side. 18 // implementation side or the client side.
18 class ScopedInterfaceEndpointHandle { 19 class MOJO_CPP_BINDINGS_EXPORT ScopedInterfaceEndpointHandle {
19 public: 20 public:
20 // Creates an invalid endpoint handle. 21 // Creates an invalid endpoint handle.
21 ScopedInterfaceEndpointHandle(); 22 ScopedInterfaceEndpointHandle();
22 23
23 ScopedInterfaceEndpointHandle(ScopedInterfaceEndpointHandle&& other); 24 ScopedInterfaceEndpointHandle(ScopedInterfaceEndpointHandle&& other);
24 25
25 ~ScopedInterfaceEndpointHandle(); 26 ~ScopedInterfaceEndpointHandle();
26 27
27 ScopedInterfaceEndpointHandle& operator=( 28 ScopedInterfaceEndpointHandle& operator=(
28 ScopedInterfaceEndpointHandle&& other); 29 ScopedInterfaceEndpointHandle&& other);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 InterfaceId id_; 61 InterfaceId id_;
61 bool is_local_; 62 bool is_local_;
62 scoped_refptr<AssociatedGroupController> group_controller_; 63 scoped_refptr<AssociatedGroupController> group_controller_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(ScopedInterfaceEndpointHandle); 65 DISALLOW_COPY_AND_ASSIGN(ScopedInterfaceEndpointHandle);
65 }; 66 };
66 67
67 } // namespace mojo 68 } // namespace mojo
68 69
69 #endif // MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ 70 #endif // MOJO_PUBLIC_CPP_BINDINGS_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/pipe_control_message_proxy.h ('k') | mojo/public/cpp/bindings/string_traits_string16.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698