| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |