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

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

Issue 2356323002: Revert of Mojo C++ bindings: always use MultiplexRouter with InterfacePtr/Binding. (Closed)
Patch Set: Created 4 years, 3 months 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 | « no previous file | 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Sends a no-op message on the underlying message pipe and runs the current 264 // Sends a no-op message on the underlying message pipe and runs the current
265 // message loop until its response is received. This can be used in tests to 265 // message loop until its response is received. This can be used in tests to
266 // verify that no message was sent on a message pipe in response to some 266 // verify that no message was sent on a message pipe in response to some
267 // stimulus. 267 // stimulus.
268 void FlushForTesting() { internal_state_.FlushForTesting(); } 268 void FlushForTesting() { internal_state_.FlushForTesting(); }
269 269
270 // Exposed for testing, should not generally be used. 270 // Exposed for testing, should not generally be used.
271 void EnableTestingMode() { internal_state_.EnableTestingMode(); } 271 void EnableTestingMode() { internal_state_.EnableTestingMode(); }
272 272
273 private: 273 private:
274 internal::BindingState<Interface, true> internal_state_; 274 internal::BindingState<Interface, Interface::PassesAssociatedKinds_>
275 internal_state_;
275 276
276 DISALLOW_COPY_AND_ASSIGN(Binding); 277 DISALLOW_COPY_AND_ASSIGN(Binding);
277 }; 278 };
278 279
279 } // namespace mojo 280 } // namespace mojo
280 281
281 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ 282 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698