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

Side by Side Diff: mojo/public/bindings/sample/mojom/sample_service_internal.h

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more rename 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/public/bindings/sample/mojom/sample_service.cc ('k') | mojo/public/bindings/sample/sample_service.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698