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

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

Issue 1751563002: Mojo C++ bindings: support mapping mojo string to WTF::String. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698