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
tree: c718ebefb024a6b6d004e7662ee8c0a54be63446
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/