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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/generators/cpp_templates/struct_serialization_traits.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_serialization_traits.tmpl b/mojo/public/bindings/generators/cpp_templates/struct_serialization_traits.tmpl
deleted file mode 100644
index d422aaf5ea9b4dd62a7a8b8209d6d0131b5120d3..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/cpp_templates/struct_serialization_traits.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{%- set full_class = "%s::internal::%s_Data"|format(namespace, struct.name) %}
-{%- set name = struct.name|camel_to_underscores -%}
-
-template <>
-class ObjectTraits<{{full_class}}> {
- public:
- static size_t ComputeSizeOf(const {{full_class}}* {{name}});
- static {{full_class}}* Clone(const {{full_class}}* {{name}}, Buffer* buf);
- static void CloseHandles({{full_class}}* {{name}});
- static void EncodePointersAndHandles({{full_class}}* {{name}},
- std::vector<mojo::Handle>* handles);
- static bool DecodePointersAndHandles({{full_class}}* {{name}},
- mojo::Message* message);
-};

Powered by Google App Engine
This is Rietveld 408576698