| 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_LIB_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_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" |
| 10 #include "mojo/public/cpp/bindings/lib/interface_id.h" | 11 #include "mojo/public/cpp/bindings/lib/interface_id.h" |
| 11 | 12 |
| 12 namespace mojo { | 13 namespace mojo { |
| 13 namespace internal { | 14 namespace internal { |
| 14 | 15 |
| 15 class MultiplexRouter; | 16 class MultiplexRouter; |
| 16 | 17 |
| 17 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the | 18 // ScopedInterfaceEndpointHandle refers to one end of an interface, either the |
| 18 // implementation side or the client side. | 19 // implementation side or the client side. |
| 19 class ScopedInterfaceEndpointHandle { | 20 class ScopedInterfaceEndpointHandle { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 private: | 55 private: |
| 55 InterfaceId id_; | 56 InterfaceId id_; |
| 56 bool is_local_; | 57 bool is_local_; |
| 57 scoped_refptr<MultiplexRouter> router_; | 58 scoped_refptr<MultiplexRouter> router_; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace internal | 61 } // namespace internal |
| 61 } // namespace mojo | 62 } // namespace mojo |
| 62 | 63 |
| 63 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ | 64 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SCOPED_INTERFACE_ENDPOINT_HANDLE_H_ |
| OLD | NEW |