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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_proxy_declaration.tmpl

Issue 2280483002: Add FlushForTesting to InterfacePtr and Binding. (Closed)
Patch Set: Created 4 years, 3 months 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 {%- import "interface_macros.tmpl" as interface_macros %} 1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{export_attribute}} {{interface.name}}Proxy 2 class {{export_attribute}} {{interface.name}}Proxy
3 : public {{interface.name}}, 3 : public {{interface.name}} {
4 public NON_EXPORTED_BASE(mojo::internal::ControlMessageProxy) {
5 public: 4 public:
6 explicit {{interface.name}}Proxy(mojo::MessageReceiverWithResponder* receiver) ; 5 explicit {{interface.name}}Proxy(mojo::MessageReceiverWithResponder* receiver) ;
7 6
8 {%- for method in interface.methods %} 7 {%- for method in interface.methods %}
9 {%- if method.sync %} 8 {%- if method.sync %}
10 bool {{method.name}}({{interface_macros.declare_sync_method_params("", method) }}) override; 9 bool {{method.name}}({{interface_macros.declare_sync_method_params("", method) }}) override;
11 {%- endif %} 10 {%- endif %}
12 void {{method.name}}({{interface_macros.declare_request_params("", method)}}) override; 11 void {{method.name}}({{interface_macros.declare_request_params("", method)}}) override;
13 {%- endfor %} 12 {%- endfor %}
14 13
15 mojo::internal::SerializationContext* serialization_context() { 14 mojo::internal::SerializationContext* serialization_context() {
16 return &serialization_context_; 15 return &serialization_context_;
17 } 16 }
18 17
19 private: 18 private:
19 mojo::MessageReceiverWithResponder* receiver_;
20 mojo::internal::SerializationContext serialization_context_; 20 mojo::internal::SerializationContext serialization_context_;
21 }; 21 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698