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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl

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/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl
index c6afa75df7f6f9c7716f2e0bce108b46a703031c..30b5de7cb3f977e41c3bdcb6fea1b1710c1875b4 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl
@@ -4,6 +4,9 @@ class {{interface.name}}Stub : public mojo::MessageReceiverWithResponderStatus {
~{{interface.name}}Stub() override;
void set_sink({{interface.name}}* sink) { sink_ = sink; }
{{interface.name}}* sink() { return sink_; }
+ mojo::internal::SerializationContext* serialization_context() {
+ return &serialization_context_;
+ }
bool Accept(mojo::Message* message) override;
bool AcceptWithResponder(mojo::Message* message,
@@ -11,5 +14,6 @@ class {{interface.name}}Stub : public mojo::MessageReceiverWithResponderStatus {
private:
{{interface.name}}* sink_;
+ mojo::internal::SerializationContext serialization_context_;
mojo::internal::ControlMessageHandler control_message_handler_;
};

Powered by Google App Engine
This is Rietveld 408576698