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

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

Issue 1358353002: * Change C++ serialization/deserialization to not be move-only operations (with the except of |Ha… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: simplify array_serialization.h (ArraySerializer::SerializeElements and [De]SerializeCaller) Created 5 years, 2 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
(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 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_
viettrungluu 2015/09/25 20:08:08 nit: add blank line above
vardhan 2015/09/28 21:55:44 Done.
8 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_
9
10 namespace mojo {
11 namespace internal {
12
13 class ArrayValidateParams;
14 class Buffer;
15
16 template <typename Key, typename Value>
17 class Map_Data;
18
19 } // namespace internal
20
21 template <typename Key, typename Value>
22 class Map;
23
24 template <typename MapKey,
25 typename MapValue,
26 typename DataKey,
27 typename DataValue>
28 void SerializeMap_(Map<MapKey, MapValue>* input,
29 internal::Buffer* buf,
30 internal::Map_Data<DataKey, DataValue>** output,
31 const internal::ArrayValidateParams* value_validate_params);
32 template <typename MapKey, typename MapValue>
33 size_t GetSerializedSize_(const Map<MapKey, MapValue>& input);
34
35 template <typename MapKey,
36 typename MapValue,
37 typename DataKey,
38 typename DataValue>
39 void Deserialize_(internal::Map_Data<DataKey, DataValue>* input,
40 Map<MapKey, MapValue>* output);
41
42 } // namespace mojo
43
44 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_SERIALIZATION_FORWARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698