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

Side by Side 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 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
OLDNEW
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698