| Index: mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| index d1c7e53b6b00e5ef3a91db7ff4745971fa609bad..a2fe64bd047fb462983e85abf078be5317bc0b2d 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| @@ -1,6 +1,11 @@
|
| {%- import "interface_macros.tmpl" as interface_macros %}
|
| class {{interface.name}}Proxy;
|
| class {{interface.name}}Stub;
|
| +
|
| +class {{interface.name}}RequestValidator;
|
| +{%- if interface|has_callbacks %}
|
| +class {{interface.name}}ResponseValidator;
|
| +{%- endif %}
|
| {% if interface.client %}
|
| class {{interface.client}};
|
| {% endif %}
|
| @@ -9,6 +14,13 @@ class {{interface.name}} {
|
| public:
|
| typedef {{interface.name}}Proxy Proxy_;
|
| typedef {{interface.name}}Stub Stub_;
|
| +
|
| + typedef {{interface.name}}RequestValidator RequestValidator_;
|
| +{%- if interface|has_callbacks %}
|
| + typedef {{interface.name}}ResponseValidator ResponseValidator_;
|
| +{%- else %}
|
| + typedef mojo::NullFilter ResponseValidator_;
|
| +{%- endif %}
|
| {% if interface.client %}
|
| typedef {{interface.client}} Client_;
|
| {% else %}
|
| @@ -23,6 +35,7 @@ class {{interface.name}} {
|
|
|
| {#--- Methods #}
|
| virtual ~{{interface.name}}() {}
|
| +
|
| {%- if interface.client %}
|
| // Called once before any other method.
|
| virtual void SetClient({{interface.client}}* client) = 0;
|
|
|