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_; |
}; |