OLD | NEW |
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 | 9 |
10 class {{interface.name}} { | 10 class {{interface.name}} { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 {% if method.response_parameters != None %} | 48 {% if method.response_parameters != None %} |
49 {%- if method.sync %} | 49 {%- if method.sync %} |
50 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("",
method)}}) { | 50 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("",
method)}}) { |
51 // Sync method. This signature is used by the client side; the service side | 51 // Sync method. This signature is used by the client side; the service side |
52 // should implement the signature with callback below. | 52 // should implement the signature with callback below. |
53 NOTREACHED(); | 53 NOTREACHED(); |
54 return false; | 54 return false; |
55 } | 55 } |
56 {%- endif %} | 56 {%- endif %} |
57 | 57 |
58 using {{method.name}}Callback = {{interface_macros.declare_callback(method)}}; | 58 using {{method.name}}Callback = {{interface_macros.declare_callback(method, fo
r_blink)}}; |
59 {%- endif %} | 59 {%- endif %} |
60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; | 60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; |
61 {%- endfor %} | 61 {%- endfor %} |
62 }; | 62 }; |
OLD | NEW |