1 // Copyright 2013 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.
5 #ifndef MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_
6 #define MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_
8 #include "mojo/public/bindings/lib/bindings_serialization.h"
18 class ObjectTraits<sample::Bar> {
20 static size_t ComputeSizeOf(const sample::Bar* bar);
21 static sample::Bar* Clone(const sample::Bar* bar, Buffer* buf);
22 static void EncodePointersAndHandles(sample::Bar* bar,
23 std::vector<mojo::Handle>* handles);
24 static bool DecodePointersAndHandles(sample::Bar* bar,
25 const mojo::Message& message);
28 } // namespace internal
31 #endif // MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_