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

Unified Diff: mojo/public/bindings/generators/cpp_templates/params_serialization

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 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/bindings/generators/cpp_templates/params_serialization
diff --git a/mojo/public/bindings/generators/cpp_templates/params_serialization b/mojo/public/bindings/generators/cpp_templates/params_serialization
new file mode 100644
index 0000000000000000000000000000000000000000..bc3a928901fb429b0ce1674761c079cb7aed1658
--- /dev/null
+++ b/mojo/public/bindings/generators/cpp_templates/params_serialization
@@ -0,0 +1,18 @@
+template <>
+class ObjectTraits<sample::Service_Frobinate_Params> {
+ public:
+ static void EncodePointersAndHandles(
+ $CLASS* $NAME,
+ std::vector<Handle>* handles) {
+$ENCODES
+$ENCODE_HANDLES
+ }
+
+ static bool DecodePointersAndHandles(
+ $CLASS* $NAME,
+ const Message& message) {
+$DECODES
+$DECODE_HANDLES
+ return true;
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698