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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 typename MapValue, | 101 typename MapValue, |
100 typename DataKey, | 102 typename DataKey, |
101 typename DataValue> | 103 typename DataValue> |
102 inline bool Deserialize_(internal::Map_Data<DataKey, DataValue>* input, | 104 inline bool Deserialize_(internal::Map_Data<DataKey, DataValue>* input, |
103 Map<MapKey, MapValue>* output, | 105 Map<MapKey, MapValue>* output, |
104 internal::SerializationContext* context); | 106 internal::SerializationContext* context); |
105 | 107 |
106 } // namespace mojo | 108 } // namespace mojo |
107 | 109 |
108 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ | 110 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_ |
OLD | NEW |