| 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_MULTIPLEX_ROUTER_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 return connector_.WaitForIncomingMessage(deadline); | 123 return connector_.WaitForIncomingMessage(deadline); |
| 124 } | 124 } |
| 125 | 125 |
| 126 // See Binding for details of pause/resume. | 126 // See Binding for details of pause/resume. |
| 127 void PauseIncomingMethodCallProcessing(); | 127 void PauseIncomingMethodCallProcessing(); |
| 128 void ResumeIncomingMethodCallProcessing(); | 128 void ResumeIncomingMethodCallProcessing(); |
| 129 | 129 |
| 130 // Whether there are any associated interfaces running currently. | 130 // Whether there are any associated interfaces running currently. |
| 131 bool HasAssociatedEndpoints() const; | 131 bool HasAssociatedEndpoints() const; |
| 132 | 132 |
| 133 void EnableNestedDispatch(bool enabled); | |
| 134 | |
| 135 // Sets this object to testing mode. | 133 // Sets this object to testing mode. |
| 136 // In testing mode, the object doesn't disconnect the underlying message pipe | 134 // In testing mode, the object doesn't disconnect the underlying message pipe |
| 137 // when it receives unexpected or invalid messages. | 135 // when it receives unexpected or invalid messages. |
| 138 void EnableTestingMode(); | 136 void EnableTestingMode(); |
| 139 | 137 |
| 140 // Is the router bound to a message pipe handle? | 138 // Is the router bound to a message pipe handle? |
| 141 bool is_valid() const { | 139 bool is_valid() const { |
| 142 DCHECK(thread_checker_.CalledOnValidThread()); | 140 DCHECK(thread_checker_.CalledOnValidThread()); |
| 143 return connector_.is_valid(); | 141 return connector_.is_valid(); |
| 144 } | 142 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 266 |
| 269 bool testing_mode_; | 267 bool testing_mode_; |
| 270 | 268 |
| 271 DISALLOW_COPY_AND_ASSIGN(MultiplexRouter); | 269 DISALLOW_COPY_AND_ASSIGN(MultiplexRouter); |
| 272 }; | 270 }; |
| 273 | 271 |
| 274 } // namespace internal | 272 } // namespace internal |
| 275 } // namespace mojo | 273 } // namespace mojo |
| 276 | 274 |
| 277 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ | 275 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| OLD | NEW |