OLD | NEW |
1 class {{interface.name}}Stub : public mojo::MessageReceiverWithResponderStatus { | 1 class {{interface.name}}Stub : public mojo::MessageReceiverWithResponderStatus { |
2 public: | 2 public: |
3 {{interface.name}}Stub(); | 3 {{interface.name}}Stub(); |
4 ~{{interface.name}}Stub() override; | 4 ~{{interface.name}}Stub() override; |
5 void set_sink({{interface.name}}* sink) { sink_ = sink; } | 5 void set_sink({{interface.name}}* sink) { sink_ = sink; } |
6 {{interface.name}}* sink() { return sink_; } | 6 {{interface.name}}* sink() { return sink_; } |
| 7 mojo::internal::SerializationContext* serialization_context() { |
| 8 return &serialization_context_; |
| 9 } |
7 | 10 |
8 bool Accept(mojo::Message* message) override; | 11 bool Accept(mojo::Message* message) override; |
9 bool AcceptWithResponder(mojo::Message* message, | 12 bool AcceptWithResponder(mojo::Message* message, |
10 mojo::MessageReceiverWithStatus* responder) override; | 13 mojo::MessageReceiverWithStatus* responder) override; |
11 | 14 |
12 private: | 15 private: |
13 {{interface.name}}* sink_; | 16 {{interface.name}}* sink_; |
| 17 mojo::internal::SerializationContext serialization_context_; |
14 mojo::internal::ControlMessageHandler control_message_handler_; | 18 mojo::internal::ControlMessageHandler control_message_handler_; |
15 }; | 19 }; |
OLD | NEW |