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

Side by Side Diff: mojo/public/cpp/bindings/struct_traits.h

Issue 2608503002: Remove mojo::WTFMap. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « mojo/public/cpp/bindings/map_traits_wtf.h ('k') | mojo/public/cpp/bindings/tests/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_STRUCT_TRAITS_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
7 7
8 namespace mojo { 8 namespace mojo {
9 9
10 // This must be specialized for any type |T| to be serialized/deserialized as 10 // This must be specialized for any type |T| to be serialized/deserialized as
(...skipping 21 matching lines...) Expand all
32 // WTF::String (in blink). 32 // WTF::String (in blink).
33 // 33 //
34 // - array: 34 // - array:
35 // Value or reference of any type that has an ArrayTraits defined. 35 // Value or reference of any type that has an ArrayTraits defined.
36 // Supported by default: std::vector, CArray, mojo::Array, WTF::Vector 36 // Supported by default: std::vector, CArray, mojo::Array, WTF::Vector
37 // (in blink), mojo::WTFArray (in blink). 37 // (in blink), mojo::WTFArray (in blink).
38 // 38 //
39 // - map: 39 // - map:
40 // Value or reference of any type that has a MapTraits defined. 40 // Value or reference of any type that has a MapTraits defined.
41 // Supported by default: std::map, std::unordered_map, mojo::Map, 41 // Supported by default: std::map, std::unordered_map, mojo::Map,
42 // WTF::HashMap (in blink), mojo::WTFMap (in blink). 42 // WTF::HashMap (in blink).
43 // 43 //
44 // - struct: 44 // - struct:
45 // Value or reference of any type that has a StructTraits defined. 45 // Value or reference of any type that has a StructTraits defined.
46 // 46 //
47 // - enum: 47 // - enum:
48 // Value of any type that has an EnumTraits defined. 48 // Value of any type that has an EnumTraits defined.
49 // 49 //
50 // For any nullable string/struct/array/map/union field you could also 50 // For any nullable string/struct/array/map/union field you could also
51 // return value or reference of base::Optional<T>/WTF::Optional<T>, if T 51 // return value or reference of base::Optional<T>/WTF::Optional<T>, if T
52 // has the right *Traits defined. 52 // has the right *Traits defined.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // 157 //
158 // static bool Read(FooDataView data, CustomFoo* output); 158 // static bool Read(FooDataView data, CustomFoo* output);
159 // }; 159 // };
160 // 160 //
161 template <typename DataViewType, typename T> 161 template <typename DataViewType, typename T>
162 struct StructTraits; 162 struct StructTraits;
163 163
164 } // namespace mojo 164 } // namespace mojo
165 165
166 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_ 166 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/map_traits_wtf.h ('k') | mojo/public/cpp/bindings/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698