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

Issue 2058633002: mojo::ArrayTraits: Add Support for Iterators (Closed)

Created:
4 years, 6 months ago by Fady Samuel
Modified:
4 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/09ab6968c2bb80dc2ea64a56fbd4a60b632af4ca Cr-Commit-Position: refs/heads/master@{#399479}

Patch Set 1 #

Patch Set 2 : Simpification #

Patch Set 3 : Improved LatencyInfo! #

Patch Set 4 : Rebased #

Total comments: 8

Patch Set 5 : Addressed comments #

Total comments: 5

Patch Set 6 : Addressed Yuzhu's comment #

Patch Set 7 : Minor simplification #

Total comments: 2

Patch Set 8 : Addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -99 lines) Patch
M mojo/public/cpp/bindings/array_traits.h View 1 2 3 4 1 chunk +36 lines, -12 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_serialization.h View 1 2 3 4 5 6 7 23 chunks +91 lines, -51 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization_util.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.h View 1 2 3 4 5 3 chunks +42 lines, -5 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.cc View 1 2 3 chunks +4 lines, -31 lines 0 comments Download

Messages

Total messages: 42 (16 generated)
Fady Samuel
+yzshen@ for review +sky@ once Yuzhu is happy for OWNER stamp +tsepez@ for ipc
4 years, 6 months ago (2016-06-10 02:50:37 UTC) #3
Fady Samuel
+rockot@ to cc as FYI
4 years, 6 months ago (2016-06-10 02:52:20 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058633002/40001
4 years, 6 months ago (2016-06-10 02:57:16 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/19227) ios-device-gn on ...
4 years, 6 months ago (2016-06-10 02:59:20 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058633002/60001
4 years, 6 months ago (2016-06-10 03:16:25 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-10 05:00:08 UTC) #12
Tom Sepez
Am I correct in thinking that this doesn't change the on-the-wire format, instead producing a ...
4 years, 6 months ago (2016-06-10 16:06:52 UTC) #13
Fady Samuel
On 2016/06/10 16:06:52, Tom Sepez wrote: > Am I correct in thinking that this doesn't ...
4 years, 6 months ago (2016-06-10 16:17:57 UTC) #14
Fady Samuel
-sky@ who is OOO, +ben@ for OWNER stamp once Yuzhu is happy/
4 years, 6 months ago (2016-06-10 16:19:54 UTC) #16
Tom Sepez
On 2016/06/10 16:17:57, Fady Samuel wrote: > On 2016/06/10 16:06:52, Tom Sepez wrote: > > ...
4 years, 6 months ago (2016-06-10 16:21:25 UTC) #17
yzshen1
https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode68 mojo/public/cpp/bindings/lib/array_serialization.h:68: auto& value = Traits::GetValue(iter); Please update the comments in ...
4 years, 6 months ago (2016-06-10 16:21:33 UTC) #18
Fady Samuel
PTAL Yuzhu! https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode68 mojo/public/cpp/bindings/lib/array_serialization.h:68: auto& value = Traits::GetValue(iter); On 2016/06/10 16:21:32, ...
4 years, 6 months ago (2016-06-10 19:05:33 UTC) #19
Fady Samuel
PTAL Yuzhu! https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/60001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode68 mojo/public/cpp/bindings/lib/array_serialization.h:68: auto& value = Traits::GetValue(iter); On 2016/06/10 16:21:32, ...
4 years, 6 months ago (2016-06-10 19:05:34 UTC) #20
yzshen1
https://codereview.chromium.org/2058633002/diff/80001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/80001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode65 mojo/public/cpp/bindings/lib/array_serialization.h:65: static decltype(Traits::GetValue(std::declval<IteratorType&>())) GetNextHelper( Is it possible to merge these ...
4 years, 6 months ago (2016-06-11 00:40:27 UTC) #21
Fady Samuel
PTAL Yuzhu! I'm by no means a template expert (especially C++ 11 templates), so please ...
4 years, 6 months ago (2016-06-11 16:16:37 UTC) #22
Fady Samuel
PTAL, a small simplification.
4 years, 6 months ago (2016-06-11 16:23:58 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058633002/120001
4 years, 6 months ago (2016-06-12 04:31:50 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/245329)
4 years, 6 months ago (2016-06-12 05:46:36 UTC) #27
yzshen1
LGTM with one nit. Thanks! https://codereview.chromium.org/2058633002/diff/120001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/120001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode146 mojo/public/cpp/bindings/lib/array_serialization.h:146: using IteratorType = please ...
4 years, 6 months ago (2016-06-13 15:18:06 UTC) #28
Fady Samuel
CQ'ing! Thanks! https://codereview.chromium.org/2058633002/diff/120001/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2058633002/diff/120001/mojo/public/cpp/bindings/lib/array_serialization.h#newcode146 mojo/public/cpp/bindings/lib/array_serialization.h:146: using IteratorType = On 2016/06/13 15:18:05, yzshen1 ...
4 years, 6 months ago (2016-06-13 15:38:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058633002/140001
4 years, 6 months ago (2016-06-13 15:38:28 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/162284)
4 years, 6 months ago (2016-06-13 17:06:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058633002/140001
4 years, 6 months ago (2016-06-13 17:15:02 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-13 17:57:05 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 17:57:09 UTC) #40
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 17:58:53 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/09ab6968c2bb80dc2ea64a56fbd4a60b632af4ca
Cr-Commit-Position: refs/heads/master@{#399479}

Powered by Google App Engine
This is Rietveld 408576698