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 MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
15 #include "mojo/public/cpp/bindings/interface_ptr.h" | 15 #include "mojo/public/cpp/bindings/interface_ptr.h" |
16 #include "mojo/public/cpp/bindings/interface_request.h" | 16 #include "mojo/public/cpp/bindings/interface_request.h" |
17 #include "mojo/public/cpp/bindings/lib/filter_chain.h" | 17 #include "mojo/public/cpp/bindings/lib/filter_chain.h" |
18 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" | |
19 #include "mojo/public/cpp/bindings/lib/router.h" | 18 #include "mojo/public/cpp/bindings/lib/router.h" |
| 19 #include "mojo/public/cpp/bindings/message_header_validator.h" |
20 #include "mojo/public/cpp/system/core.h" | 20 #include "mojo/public/cpp/system/core.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 | 23 |
24 // This connects an interface implementation strongly to a pipe. When a | 24 // This connects an interface implementation strongly to a pipe. When a |
25 // connection error is detected the implementation is deleted. Deleting the | 25 // connection error is detected the implementation is deleted. Deleting the |
26 // connector also closes the pipe. | 26 // connector also closes the pipe. |
27 // | 27 // |
28 // Example of an implementation that is always bound strongly to a pipe | 28 // Example of an implementation that is always bound strongly to a pipe |
29 // | 29 // |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 private: | 117 private: |
118 base::Closure connection_error_handler_; | 118 base::Closure connection_error_handler_; |
119 Binding<Interface> binding_; | 119 Binding<Interface> binding_; |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(StrongBinding); | 121 DISALLOW_COPY_AND_ASSIGN(StrongBinding); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace mojo | 124 } // namespace mojo |
125 | 125 |
126 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ | 126 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ |
OLD | NEW |