Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: mojo/public/cpp/bindings/binding.h

Issue 2532053004: Mojo C++ bindings: remove the single-threaded Router. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/bindings/BUILD.gn ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/BUILD.gn ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698