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 |