OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ | 5 #ifndef MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ |
6 #define MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ | 6 #define MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "mojo/public/bindings/lib/bindings_serialization.h" | 10 #include "mojo/public/bindings/lib/bindings_serialization.h" |
11 #include "mojo/public/bindings/sample/generated/sample_service.h" | 11 #include "mojom/sample_service.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 template <> | 16 template <> |
17 class ObjectTraits<sample::Bar> { | 17 class ObjectTraits<sample::Bar> { |
18 public: | 18 public: |
19 static size_t ComputeSizeOf(const sample::Bar* bar); | 19 static size_t ComputeSizeOf(const sample::Bar* bar); |
20 static sample::Bar* Clone(const sample::Bar* bar, Buffer* buf); | 20 static sample::Bar* Clone(const sample::Bar* bar, Buffer* buf); |
21 static void EncodePointersAndHandles(sample::Bar* bar, | 21 static void EncodePointersAndHandles(sample::Bar* bar, |
(...skipping 10 matching lines...) Expand all Loading... |
32 static void EncodePointersAndHandles(sample::Foo* foo, | 32 static void EncodePointersAndHandles(sample::Foo* foo, |
33 std::vector<mojo::Handle>* handles); | 33 std::vector<mojo::Handle>* handles); |
34 static bool DecodePointersAndHandles(sample::Foo* foo, | 34 static bool DecodePointersAndHandles(sample::Foo* foo, |
35 const mojo::Message& message); | 35 const mojo::Message& message); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace internal | 38 } // namespace internal |
39 } // namespace mojo | 39 } // namespace mojo |
40 | 40 |
41 #endif // MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ | 41 #endif // MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_SERIALIZATION_H_ |
OLD | NEW |