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

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

Issue 2506383002: Mojo: adding a thread safe associated interface ptr. (Closed)
Patch Set: Addressed comment + sync Created 4 years, 1 month 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
« no previous file with comments | « mojo/public/cpp/bindings/thread_safe_interface_ptr.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 {%- if variant -%} 5 {%- if variant -%}
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_path = module.path -%} 8 {%- set variant_path = module.path -%}
9 {%- endif -%} 9 {%- endif -%}
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 {#--- Interface Forward Declarations -#} 110 {#--- Interface Forward Declarations -#}
111 {% for interface in interfaces %} 111 {% for interface in interfaces %}
112 class {{interface.name}}; 112 class {{interface.name}};
113 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; 113 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>;
114 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>; 114 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>;
115 using ThreadSafe{{interface.name}}Ptr = 115 using ThreadSafe{{interface.name}}Ptr =
116 mojo::ThreadSafeInterfacePtr<{{interface.name}}>; 116 mojo::ThreadSafeInterfacePtr<{{interface.name}}>;
117 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>; 117 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>;
118 using {{interface.name}}AssociatedPtr = 118 using {{interface.name}}AssociatedPtr =
119 mojo::AssociatedInterfacePtr<{{interface.name}}>; 119 mojo::AssociatedInterfacePtr<{{interface.name}}>;
120 using ThreadSafe{{interface.name}}AssociatedPtr =
121 mojo::ThreadSafeAssociatedInterfacePtr<{{interface.name}}>;
120 using {{interface.name}}AssociatedPtrInfo = 122 using {{interface.name}}AssociatedPtrInfo =
121 mojo::AssociatedInterfacePtrInfo<{{interface.name}}>; 123 mojo::AssociatedInterfacePtrInfo<{{interface.name}}>;
122 using {{interface.name}}AssociatedRequest = 124 using {{interface.name}}AssociatedRequest =
123 mojo::AssociatedInterfaceRequest<{{interface.name}}>; 125 mojo::AssociatedInterfaceRequest<{{interface.name}}>;
124 {% endfor %} 126 {% endfor %}
125 127
126 {#--- Struct Forward Declarations -#} 128 {#--- Struct Forward Declarations -#}
127 {% for struct in structs %} 129 {% for struct in structs %}
128 {%- if struct|is_native_only_kind %} 130 {%- if struct|is_native_only_kind %}
129 using {{struct.name}} = mojo::NativeStruct; 131 using {{struct.name}} = mojo::NativeStruct;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 {#--- Union Serialization Helpers -#} 223 {#--- Union Serialization Helpers -#}
222 {% if unions %} 224 {% if unions %}
223 {%- for union in unions %} 225 {%- for union in unions %}
224 {% include "union_traits_declaration.tmpl" %} 226 {% include "union_traits_declaration.tmpl" %}
225 {%- endfor %} 227 {%- endfor %}
226 {%- endif %} 228 {%- endif %}
227 229
228 } // namespace mojo 230 } // namespace mojo
229 231
230 #endif // {{header_guard}} 232 #endif // {{header_guard}}
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/thread_safe_interface_ptr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698