| 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_BINDING_STATE_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 DISALLOW_COPY_AND_ASSIGN(BindingState); | 124 DISALLOW_COPY_AND_ASSIGN(BindingState); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 // Base class used for templated binding primitives which may bind a pipe to | 127 // Base class used for templated binding primitives which may bind a pipe to |
| 128 // multiple interfaces. | 128 // multiple interfaces. |
| 129 class MultiplexedBindingState { | 129 class MultiplexedBindingState { |
| 130 public: | 130 public: |
| 131 MultiplexedBindingState(); | 131 MultiplexedBindingState(); |
| 132 ~MultiplexedBindingState(); | 132 ~MultiplexedBindingState(); |
| 133 | 133 |
| 134 void AddFilter(std::unique_ptr<MessageReceiver> filter); |
| 135 |
| 134 bool HasAssociatedInterfaces() const; | 136 bool HasAssociatedInterfaces() const; |
| 135 | 137 |
| 136 void PauseIncomingMethodCallProcessing(); | 138 void PauseIncomingMethodCallProcessing(); |
| 137 void ResumeIncomingMethodCallProcessing(); | 139 void ResumeIncomingMethodCallProcessing(); |
| 138 | 140 |
| 139 bool WaitForIncomingMethodCall( | 141 bool WaitForIncomingMethodCall( |
| 140 MojoDeadline deadline = MOJO_DEADLINE_INDEFINITE); | 142 MojoDeadline deadline = MOJO_DEADLINE_INDEFINITE); |
| 141 | 143 |
| 142 void Close(); | 144 void Close(); |
| 143 | 145 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 typename Interface::Stub_ stub_; | 212 typename Interface::Stub_ stub_; |
| 211 Interface* impl_; | 213 Interface* impl_; |
| 212 | 214 |
| 213 DISALLOW_COPY_AND_ASSIGN(BindingState); | 215 DISALLOW_COPY_AND_ASSIGN(BindingState); |
| 214 }; | 216 }; |
| 215 | 217 |
| 216 } // namesapce internal | 218 } // namesapce internal |
| 217 } // namespace mojo | 219 } // namespace mojo |
| 218 | 220 |
| 219 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ | 221 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ |
| OLD | NEW |