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

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

Issue 131033002: Mojo: Simplify object serialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indentation error Created 6 years, 11 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
(Empty)
1 {%- set full_class = "%s::internal::%s_Data"|format(namespace, struct.name) %}
2 {%- set name = struct.name|camel_to_underscores -%}
3
4 template <>
5 class ObjectTraits<{{full_class}}> {
6 public:
7 static size_t ComputeSizeOf(const {{full_class}}* {{name}});
8 static {{full_class}}* Clone(const {{full_class}}* {{name}}, Buffer* buf);
9 static void CloseHandles({{full_class}}* {{name}});
10 static void EncodePointersAndHandles({{full_class}}* {{name}},
11 std::vector<mojo::Handle>* handles);
12 static bool DecodePointersAndHandles({{full_class}}* {{name}},
13 mojo::Message* message);
14 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698