| OLD | NEW |
| (Empty) |
| 1 // Copyright $YEAR The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef $HEADER_GUARD | |
| 6 #define $HEADER_GUARD | |
| 7 | |
| 8 #include "mojo/public/bindings/lib/bindings_serialization.h" | |
| 9 | |
| 10 namespace $NAMESPACE { | |
| 11 class $CLASS; | |
| 12 } | |
| 13 | |
| 14 namespace mojo { | |
| 15 namespace internal { | |
| 16 | |
| 17 template <> | |
| 18 class ObjectTraits<$FULL_CLASS> { | |
| 19 public: | |
| 20 static size_t ComputeSizeOf(const $FULL_CLASS* $NAME); | |
| 21 static $FULL_CLASS* Clone(const $FULL_CLASS* bar, Buffer* buf); | |
| 22 static void EncodePointersAndHandles($FULL_CLASS* $NAME, | |
| 23 std::vector<mojo::Handle>* handles); | |
| 24 static bool DecodePointersAndHandles($FULL_CLASS* $NAME, | |
| 25 const mojo::Message& message); | |
| 26 }; | |
| 27 | |
| 28 } // namespace internal | |
| 29 } // namespace mojo | |
| 30 | |
| 31 #endif // $HEADER_GUARD | |
| OLD | NEW |