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

Side by Side Diff: mojo/public/cpp/bindings/lib/bindings_internal.h

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: serialization Created 6 years, 7 months 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_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_
7 7
8 #include "mojo/public/cpp/bindings/lib/template_util.h"
8 #include "mojo/public/cpp/system/core.h" 9 #include "mojo/public/cpp/system/core.h"
9 10
10 namespace mojo { 11 namespace mojo {
11 template <typename S> class InterfaceHandle; 12 template <typename S> class InterfaceHandle;
12 13
13 namespace internal { 14 namespace internal {
14 template <typename T> class Array_Data; 15 template <typename T> class Array_Data;
15 16
16 #pragma pack(push, 1) 17 #pragma pack(push, 1)
17 18
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 static const bool kIsHandle = true; 156 static const bool kIsHandle = true;
156 static const bool kIsObject = false; 157 static const bool kIsObject = false;
157 }; 158 };
158 159
159 template <typename T> class ObjectTraits {}; 160 template <typename T> class ObjectTraits {};
160 161
161 } // namespace internal 162 } // namespace internal
162 } // namespace mojo 163 } // namespace mojo
163 164
164 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ 165 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698