mojo::ArrayTraits: Add Support for Iterators
This CL adds support for iterating over a data structure to serialize over
mojo as an array wire format.
This CL also modifies changes to LatencyInfo StructTraits that avoids
extra copies of LatencyMap on serialization.
Note that this solution doesn't fully address deserialization though.
You cannot directly assign an std::pair to a map iterator, for example.
The solution is to introduce an ArrayTraits::Assign. I'll do that in a
separate CL as this CL has already gotten very complex.
BUG=611802
TBR=ben@chromium.org
Review-Url: https://codereview.chromium.org/2058633002
Cr-Commit-Position: refs/heads/master@{#399479}
CrOS-Libchrome-Original-Commit: 09ab6968c2bb80dc2ea64a56fbd4a60b632af4ca
3 files changed