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

Unified Diff: mojo/public/cpp/bindings/lib/binding_state.h

Issue 1475813002: Mojo C++ bindings: support passing associated interface pointers/requests in method parameter lists… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_use_multiplex_router
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/binding_state.h
diff --git a/mojo/public/cpp/bindings/lib/binding_state.h b/mojo/public/cpp/bindings/lib/binding_state.h
index d6f4711ef4f0f9c05cee20687cd5f152cf31c291..1c00ab4ba9c7ea193f357724932cb59fec9b6edb 100644
--- a/mojo/public/cpp/bindings/lib/binding_state.h
+++ b/mojo/public/cpp/bindings/lib/binding_state.h
@@ -139,6 +139,8 @@ class BindingState<Interface, true> {
DCHECK(!router_);
router_ = new internal::MultiplexRouter(false, handle.Pass(), waiter);
+ stub_.serialization_context()->router = router_;
+
endpoint_client_.reset(new internal::InterfaceEndpointClient(
router_->CreateLocalEndpointHandle(internal::kMasterInterfaceId),
&stub_, make_scoped_ptr(new typename Interface::RequestValidator_())));
« no previous file with comments | « mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h ('k') | mojo/public/cpp/bindings/lib/bindings_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698