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

Unified Diff: mojo/public/bindings/generators/cpp_templates/struct_declaration.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_declaration.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl b/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl
index 480e4726e6a32b3ea6a538329612332076d9c5b3..a4bfe21c254c489cdd9446dbf6df7bba426d653e 100644
--- a/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl
+++ b/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl
@@ -18,9 +18,13 @@ class {{class_name}} {
{#--- Getters -#}
{{ struct_macros.getters(struct) }}
- private:
- friend class mojo::internal::ObjectTraits<{{class_name}}>;
+ size_t ComputeSize() const;
+ {{class_name}}* Clone(mojo::Buffer* buf) const;
+ void CloseHandles();
+ void EncodePointersAndHandles(std::vector<mojo::Handle>* handles);
+ bool DecodePointersAndHandles(mojo::Message* message);
+ private:
{{class_name}}();
~{{class_name}}(); // NOT IMPLEMENTED

Powered by Google App Engine
This is Rietveld 408576698