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

Side by Side Diff: mojo/public/bindings/sample/generated/sample_bar_serialization.h

Issue 60803002: Simpler bindings, fewer files! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move more to the .cc file 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
(Empty)
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.
4
5 #ifndef MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_
6 #define MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_
7
8 #include "mojo/public/bindings/lib/bindings_serialization.h"
9
10 namespace sample {
11 class Bar;
12 }
13
14 namespace mojo {
15 namespace internal {
16
17 template <>
18 class ObjectTraits<sample::Bar> {
19 public:
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);
26 };
27
28 } // namespace internal
29 } // namespace mojo
30
31 #endif // MOJO_GENERATED_BINDINGS_SAMPLE_BAR_SERIALIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698