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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl

Issue 1955123003: Mojo C++ bindings: switch the remaining callsites of the old serialization interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@24_union_and_others
Patch Set: Created 4 years, 7 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
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
index 52e2a7cbabc243f52757f6f67beeca8450e9eba0..9eaf47735be75a6bff8c8f0f0bdcfd5fc4b7869c 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
@@ -28,28 +28,6 @@
}
{% endif %}
-{%- set serializer_type = struct|unmapped_type_for_serializer %}
-
-size_t GetSerializedSize_({{struct.name}}Ptr& input,
- mojo::internal::SerializationContext* context) {
-
- return mojo::internal::PrepareToSerialize<{{serializer_type}}>(
- input, context);
-}
-
-void Serialize_({{struct.name}}Ptr input, mojo::internal::Buffer* buf,
- internal::{{struct.name}}_Data** output,
- mojo::internal::SerializationContext* context) {
- mojo::internal::Serialize<{{serializer_type}}>(input, buf, output, context);
-}
-
-bool Deserialize_(internal::{{struct.name}}_Data* input,
- {{struct.name}}Ptr* output,
- mojo::internal::SerializationContext* context) {
- return mojo::internal::Deserialize<{{serializer_type}}>(
- input, output, context);
-}
-
{{struct.name}}_Reader::{{struct.name}}_Reader(
internal::{{struct.name}}_Data* data,
mojo::internal::SerializationContext* context)
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698