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

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

Issue 304273004: Add name to services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get chrome to build Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 {%- import "interface_macros.tmpl" as interface_macros %} 1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{interface.name}}Proxy; 2 class {{interface.name}}Proxy;
3 class {{interface.name}}Stub; 3 class {{interface.name}}Stub;
4 4
5 class {{interface.name}}RequestValidator; 5 class {{interface.name}}RequestValidator;
6 {%- if interface|has_callbacks %} 6 {%- if interface|has_callbacks %}
7 class {{interface.name}}ResponseValidator; 7 class {{interface.name}}ResponseValidator;
8 {%- endif %} 8 {%- endif %}
9 {% if interface.client %} 9 {% if interface.client %}
10 class {{interface.client}}; 10 class {{interface.client}};
11 {% endif %} 11 {% endif %}
12 12
13 class {{interface.name}} { 13 class {{interface.name}} {
14 public: 14 public:
15 static const char* Name_;
16
15 typedef {{interface.name}}Proxy Proxy_; 17 typedef {{interface.name}}Proxy Proxy_;
16 typedef {{interface.name}}Stub Stub_; 18 typedef {{interface.name}}Stub Stub_;
17 19
18 typedef {{interface.name}}RequestValidator RequestValidator_; 20 typedef {{interface.name}}RequestValidator RequestValidator_;
19 {%- if interface|has_callbacks %} 21 {%- if interface|has_callbacks %}
20 typedef {{interface.name}}ResponseValidator ResponseValidator_; 22 typedef {{interface.name}}ResponseValidator ResponseValidator_;
21 {%- else %} 23 {%- else %}
22 typedef mojo::PassThroughFilter ResponseValidator_; 24 typedef mojo::PassThroughFilter ResponseValidator_;
23 {%- endif %} 25 {%- endif %}
24 {% if interface.client %} 26 {% if interface.client %}
(...skipping 13 matching lines...) Expand all
38 {{enum_def()|indent(2)}} 40 {{enum_def()|indent(2)}}
39 {%- endfor %} 41 {%- endfor %}
40 42
41 {#--- Methods #} 43 {#--- Methods #}
42 virtual ~{{interface.name}}() {} 44 virtual ~{{interface.name}}() {}
43 45
44 {%- for method in interface.methods %} 46 {%- for method in interface.methods %}
45 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; 47 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0;
46 {%- endfor %} 48 {%- endfor %}
47 }; 49 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698