| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Headers such as array_serialization.h can include this file to avoid circular | |
| 6 // dependencies on map_serialization.h. | |
| 7 | |
| 8 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_ | |
| 9 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_ | |
| 10 | |
| 11 namespace mojo { | |
| 12 namespace internal { | |
| 13 | |
| 14 class ArrayValidateParams; | |
| 15 class Buffer; | |
| 16 | |
| 17 template <typename Key, typename Value> | |
| 18 class Map_Data; | |
| 19 | |
| 20 } // namespace internal | |
| 21 | |
| 22 template <typename Key, typename Value> | |
| 23 class Map; | |
| 24 | |
| 25 template <typename MapKey, | |
| 26 typename MapValue, | |
| 27 typename DataKey, | |
| 28 typename DataValue> | |
| 29 internal::ValidationError SerializeMap_( | |
| 30 Map<MapKey, MapValue>* input, | |
| 31 internal::Buffer* buf, | |
| 32 internal::Map_Data<DataKey, DataValue>** output, | |
| 33 const internal::ArrayValidateParams* value_validate_params); | |
| 34 template <typename MapKey, typename MapValue> | |
| 35 size_t GetSerializedSize_(const Map<MapKey, MapValue>& input); | |
| 36 | |
| 37 template <typename MapKey, | |
| 38 typename MapValue, | |
| 39 typename DataKey, | |
| 40 typename DataValue> | |
| 41 void Deserialize_(internal::Map_Data<DataKey, DataValue>* input, | |
| 42 Map<MapKey, MapValue>* output); | |
| 43 | |
| 44 } // namespace mojo | |
| 45 | |
| 46 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_ | |
| OLD | NEW |