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

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

Issue 1475813002: Mojo C++ bindings: support passing associated interface pointers/requests in method parameter lists… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_use_multiplex_router
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
index fe25553846ccb00911dd711936e4a04398194d05..24cc76725aec0243bfcfcaccccb4814d6dafa02f 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
@@ -17,10 +17,11 @@ void Serialize_({{struct.name}}Ptr input, mojo::internal::Buffer* buf,
}
void Deserialize_(internal::{{struct.name}}_Data* input,
- {{struct.name}}Ptr* output) {
+ {{struct.name}}Ptr* output,
+ mojo::internal::SerializationContext* context) {
if (input) {
{{struct.name}}Ptr result({{struct.name}}::New());
- {{struct_macros.deserialize(struct, "input", "result->%s")|indent(2)}}
+ {{struct_macros.deserialize(struct, "input", "result->%s", "context")|indent(2)}}
*output = result.Pass();
} else {
output->reset();

Powered by Google App Engine
This is Rietveld 408576698