OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
7 | 7 |
8 #include "third_party/mojo/src/mojo/public/c/environment/async_waiter.h" | 8 #include "mojo/public/c/environment/async_waiter.h" |
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h" | 9 #include "mojo/public/cpp/bindings/callback.h" |
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h" | 10 #include "mojo/public/cpp/bindings/interface_ptr.h" |
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr_info.h" | 11 #include "mojo/public/cpp/bindings/interface_ptr_info.h" |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/filter_chain.h" | 13 #include "mojo/public/cpp/bindings/lib/filter_chain.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/message_header_valid
ator.h" | 14 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/router.h" | 15 #include "mojo/public/cpp/bindings/lib/router.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 16 #include "mojo/public/cpp/environment/logging.h" |
17 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 17 #include "mojo/public/cpp/system/core.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 | 20 |
21 // Represents the binding of an interface implementation to a message pipe. | 21 // Represents the binding of an interface implementation to a message pipe. |
22 // When the |Binding| object is destroyed, the binding between the message pipe | 22 // When the |Binding| object is destroyed, the binding between the message pipe |
23 // and the interface is torn down and the message pipe is closed, leaving the | 23 // and the interface is torn down and the message pipe is closed, leaving the |
24 // interface implementation in an unbound state. | 24 // interface implementation in an unbound state. |
25 // | 25 // |
26 // Example: | 26 // Example: |
27 // | 27 // |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 internal::Router* internal_router_ = nullptr; | 229 internal::Router* internal_router_ = nullptr; |
230 typename Interface::Stub_ stub_; | 230 typename Interface::Stub_ stub_; |
231 Interface* impl_; | 231 Interface* impl_; |
232 Closure connection_error_handler_; | 232 Closure connection_error_handler_; |
233 | 233 |
234 MOJO_DISALLOW_COPY_AND_ASSIGN(Binding); | 234 MOJO_DISALLOW_COPY_AND_ASSIGN(Binding); |
235 }; | 235 }; |
236 | 236 |
237 } // namespace mojo | 237 } // namespace mojo |
238 | 238 |
239 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 239 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
OLD | NEW |