| 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_BINDING_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // Sends a no-op message on the underlying message pipe and runs the current | 268 // Sends a no-op message on the underlying message pipe and runs the current |
| 269 // message loop until its response is received. This can be used in tests to | 269 // message loop until its response is received. This can be used in tests to |
| 270 // verify that no message was sent on a message pipe in response to some | 270 // verify that no message was sent on a message pipe in response to some |
| 271 // stimulus. | 271 // stimulus. |
| 272 void FlushForTesting() { internal_state_.FlushForTesting(); } | 272 void FlushForTesting() { internal_state_.FlushForTesting(); } |
| 273 | 273 |
| 274 // Exposed for testing, should not generally be used. | 274 // Exposed for testing, should not generally be used. |
| 275 void EnableTestingMode() { internal_state_.EnableTestingMode(); } | 275 void EnableTestingMode() { internal_state_.EnableTestingMode(); } |
| 276 | 276 |
| 277 private: | 277 private: |
| 278 internal::BindingState<Interface, true, ImplRefTraits> internal_state_; | 278 internal::BindingState<Interface, ImplRefTraits> internal_state_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(Binding); | 280 DISALLOW_COPY_AND_ASSIGN(Binding); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 } // namespace mojo | 283 } // namespace mojo |
| 284 | 284 |
| 285 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 285 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
| OLD | NEW |