| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/lib/string_serialization.h" | 10 #include "mojo/public/cpp/bindings/lib/string_serialization.h" |
| 11 #include "mojo/public/cpp/bindings/lib/wtf_string_serialization.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. | 15 // Users of the serialization funtions should include serialization.h (and also |
| 16 // wtf_serialization.h if necessary). |
| 15 | 17 |
| 16 namespace mojo { | 18 namespace mojo { |
| 17 | 19 |
| 18 template <typename T> | 20 template <typename T> |
| 19 class Array; | 21 class Array; |
| 20 | 22 |
| 21 template <typename K, typename V> | 23 template <typename K, typename V> |
| 22 class Map; | 24 class Map; |
| 23 | 25 |
| 24 namespace internal { | 26 namespace internal { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 typename MapValue, | 96 typename MapValue, |
| 95 typename DataKey, | 97 typename DataKey, |
| 96 typename DataValue> | 98 typename DataValue> |
| 97 inline bool Deserialize_(internal::Map_Data<DataKey, DataValue>* input, | 99 inline bool Deserialize_(internal::Map_Data<DataKey, DataValue>* input, |
| 98 Map<MapKey, MapValue>* output, | 100 Map<MapKey, MapValue>* output, |
| 99 internal::SerializationContext* context); | 101 internal::SerializationContext* context); |
| 100 | 102 |
| 101 } // namespace mojo | 103 } // namespace mojo |
| 102 | 104 |
| 103 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ | 105 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ |
| OLD | NEW |