| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |