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

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

Issue 2014403002: Mojo C++ bindings: custom type mapping of map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SERIALIZATION_FORWARD_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
7 7
8 #include "mojo/public/cpp/bindings/array_traits.h" 8 #include "mojo/public/cpp/bindings/array_traits.h"
9 #include "mojo/public/cpp/bindings/map_traits.h"
9 #include "mojo/public/cpp/bindings/string_traits.h" 10 #include "mojo/public/cpp/bindings/string_traits.h"
10 #include "mojo/public/cpp/bindings/struct_traits.h" 11 #include "mojo/public/cpp/bindings/struct_traits.h"
11 12
12 // This file is included by serialization implementation files to avoid circular 13 // This file is included by serialization implementation files to avoid circular
13 // includes. 14 // includes.
14 // Users of the serialization funtions should include serialization.h (and also 15 // Users of the serialization funtions should include serialization.h (and also
15 // wtf_serialization.h if necessary). 16 // wtf_serialization.h if necessary).
16 17
17 namespace mojo { 18 namespace mojo {
18 namespace internal { 19 namespace internal {
(...skipping 26 matching lines...) Expand all
45 typename... Args> 46 typename... Args>
46 bool Deserialize(DataType&& input, InputUserType* output, Args&&... args) { 47 bool Deserialize(DataType&& input, InputUserType* output, Args&&... args) {
47 return Serializer<MojomType, InputUserType>::Deserialize( 48 return Serializer<MojomType, InputUserType>::Deserialize(
48 std::forward<DataType>(input), output, std::forward<Args>(args)...); 49 std::forward<DataType>(input), output, std::forward<Args>(args)...);
49 } 50 }
50 51
51 } // namespace internal 52 } // namespace internal
52 } // namespace mojo 53 } // namespace mojo
53 54
54 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ 55 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/serialization.h ('k') | mojo/public/cpp/bindings/lib/serialization_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698