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

Issue 646063003: Change data pipe wrappers used by SerialConnection to use message pipe. (Closed)

Created:
6 years, 2 months ago by Sam McNally
Modified:
6 years, 1 month ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change data pipe wrappers used by SerialConnection to use message pipe. Interprocess mojo data pipe is not ready yet. This converts the data pipe wrappers to send the data via their control message pipes until interprocess data pipe is ready. BUG=389016 Committed: https://crrev.com/f43db66685654de91010ee4feda62d7b7880d4b4 Cr-Commit-Position: refs/heads/master@{#301582}

Patch Set 1 : #

Total comments: 57

Patch Set 2 : address comments #

Total comments: 22

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Patch Set 5 : split out bug fix #

Total comments: 9

Patch Set 6 : address comments #

Patch Set 7 : don't use mojo::Array<T>::storage() #

Patch Set 8 : fix win x64 compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -676 lines) Patch
M device/serial/data_receiver.h View 1 2 3 7 chunks +15 lines, -31 lines 0 comments Download
M device/serial/data_receiver.cc View 1 2 3 4 5 6 7 10 chunks +76 lines, -131 lines 0 comments Download
M device/serial/data_sender.h View 1 2 3 4 chunks +16 lines, -26 lines 0 comments Download
M device/serial/data_sender.cc View 1 6 9 chunks +30 lines, -54 lines 0 comments Download
M device/serial/data_sink_receiver.h View 1 2 4 chunks +22 lines, -22 lines 0 comments Download
M device/serial/data_sink_receiver.cc View 1 2 3 8 chunks +100 lines, -121 lines 0 comments Download
M device/serial/data_source_sender.h View 1 2 3 3 chunks +23 lines, -24 lines 0 comments Download
M device/serial/data_source_sender.cc View 1 2 3 4 5 6 7 9 chunks +69 lines, -75 lines 0 comments Download
M device/serial/data_stream.mojom View 1 2 3 2 chunks +22 lines, -13 lines 0 comments Download
M device/serial/data_stream_serialization.mojom View 3 chunks +5 lines, -6 lines 0 comments Download
M device/serial/serial_connection_unittest.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M extensions/renderer/api/serial/data_receiver_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -10 lines 0 comments Download
M extensions/renderer/resources/data_receiver.js View 1 2 3 4 5 13 chunks +50 lines, -70 lines 0 comments Download
M extensions/renderer/resources/data_sender.js View 1 2 3 4 5 14 chunks +56 lines, -85 lines 0 comments Download
M extensions/test/data/data_receiver_unittest.js View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
Sam McNally
6 years, 2 months ago (2014-10-14 17:33:15 UTC) #6
raymes
Reviewed DataSender and DataReceiver https://codereview.chromium.org/646063003/diff/540001/device/serial/data_receiver.cc File device/serial/data_receiver.cc (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_receiver.cc#newcode32 device/serial/data_receiver.cc:32: bool dispatched() { return buffer_in_use_; ...
6 years, 2 months ago (2014-10-17 01:55:42 UTC) #7
raymes
A few more comments. https://codereview.chromium.org/646063003/diff/540001/device/serial/data_stream.mojom File device/serial/data_stream.mojom (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_stream.mojom#newcode16 device/serial/data_stream.mojom:16: AckData(uint32 bytes_received); Please add a ...
6 years, 2 months ago (2014-10-17 02:11:10 UTC) #8
raymes
DataSinkReceiver https://codereview.chromium.org/646063003/diff/540001/device/serial/data_sink_receiver.cc File device/serial/data_sink_receiver.cc (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_sink_receiver.cc#newcode104 device/serial/data_sink_receiver.cc:104: return; Should this ever happen in normal operation? ...
6 years, 2 months ago (2014-10-17 03:10:12 UTC) #9
raymes
https://codereview.chromium.org/646063003/diff/540001/device/serial/data_stream.mojom File device/serial/data_stream.mojom (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_stream.mojom#newcode48 device/serial/data_stream.mojom:48: // |bytes_to_flush|, the number of bytes enqueued in the ...
6 years, 2 months ago (2014-10-17 03:16:24 UTC) #10
raymes
https://codereview.chromium.org/646063003/diff/540001/device/serial/data_source_sender.cc File device/serial/data_source_sender.cc (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_source_sender.cc#newcode20 device/serial/data_source_sender.cc:20: // Asynchronously fills |data| with up to |num_bytes| of ...
6 years, 2 months ago (2014-10-17 04:04:45 UTC) #11
Sam McNally
https://codereview.chromium.org/646063003/diff/540001/device/serial/data_receiver.cc File device/serial/data_receiver.cc (right): https://codereview.chromium.org/646063003/diff/540001/device/serial/data_receiver.cc#newcode32 device/serial/data_receiver.cc:32: bool dispatched() { return buffer_in_use_; } On 2014/10/17 01:55:42, ...
6 years, 2 months ago (2014-10-20 05:13:00 UTC) #13
raymes
https://codereview.chromium.org/646063003/diff/580001/device/serial/data_receiver.h File device/serial/data_receiver.h (right): https://codereview.chromium.org/646063003/diff/580001/device/serial/data_receiver.h#newcode86 device/serial/data_receiver.h:86: std::queue<linked_ptr<DataFrame>> pending_data_buffers_; Should we call it pending_data_frames_? And update ...
6 years, 1 month ago (2014-10-27 03:02:23 UTC) #15
Sam McNally
https://codereview.chromium.org/646063003/diff/580001/device/serial/data_receiver.h File device/serial/data_receiver.h (right): https://codereview.chromium.org/646063003/diff/580001/device/serial/data_receiver.h#newcode86 device/serial/data_receiver.h:86: std::queue<linked_ptr<DataFrame>> pending_data_buffers_; On 2014/10/27 03:02:22, raymes wrote: > Should ...
6 years, 1 month ago (2014-10-27 05:39:14 UTC) #17
raymes
https://codereview.chromium.org/646063003/diff/580001/device/serial/data_sink_receiver.h File device/serial/data_sink_receiver.h (right): https://codereview.chromium.org/646063003/diff/580001/device/serial/data_sink_receiver.h#newcode50 device/serial/data_sink_receiver.h:50: virtual void Init(uint32_t buffer_size) override; Is removing virtual a ...
6 years, 1 month ago (2014-10-27 22:57:29 UTC) #18
Sam McNally
https://codereview.chromium.org/646063003/diff/580001/device/serial/data_sink_receiver.h File device/serial/data_sink_receiver.h (right): https://codereview.chromium.org/646063003/diff/580001/device/serial/data_sink_receiver.h#newcode50 device/serial/data_sink_receiver.h:50: virtual void Init(uint32_t buffer_size) override; On 2014/10/27 22:57:29, raymes ...
6 years, 1 month ago (2014-10-27 23:33:57 UTC) #20
raymes
lgtm
6 years, 1 month ago (2014-10-27 23:36:36 UTC) #21
Sam McNally
+rockot
6 years, 1 month ago (2014-10-27 23:41:59 UTC) #23
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/646063003/diff/700001/device/serial/data_receiver.cc File device/serial/data_receiver.cc (right): https://codereview.chromium.org/646063003/diff/700001/device/serial/data_receiver.cc#newcode23 device/serial/data_receiver.cc:23: bool DispatchDataFrame(DataReceiver::DataFrame* data); nit: Please document the return ...
6 years, 1 month ago (2014-10-28 04:59:33 UTC) #24
Sam McNally
https://codereview.chromium.org/646063003/diff/700001/device/serial/data_receiver.cc File device/serial/data_receiver.cc (right): https://codereview.chromium.org/646063003/diff/700001/device/serial/data_receiver.cc#newcode23 device/serial/data_receiver.cc:23: bool DispatchDataFrame(DataReceiver::DataFrame* data); On 2014/10/28 04:59:33, Ken Rockot wrote: ...
6 years, 1 month ago (2014-10-28 05:11:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646063003/720001
6 years, 1 month ago (2014-10-28 05:13:13 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/28770)
6 years, 1 month ago (2014-10-28 05:24:59 UTC) #31
Sam McNally
https://codereview.chromium.org/646063003/diff/700001/device/serial/data_sender.cc File device/serial/data_sender.cc (right): https://codereview.chromium.org/646063003/diff/700001/device/serial/data_sender.cc#newcode239 device/serial/data_sender.cc:239: memcpy(&bytes[0], data_.data() + bytes_sent_, num_bytes_to_send); On 2014/10/28 05:11:10, Sam ...
6 years, 1 month ago (2014-10-28 05:37:22 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646063003/740001
6 years, 1 month ago (2014-10-28 05:38:11 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646063003/760001
6 years, 1 month ago (2014-10-28 06:03:45 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:760001)
6 years, 1 month ago (2014-10-28 07:04:43 UTC) #37
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 07:05:34 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f43db66685654de91010ee4feda62d7b7880d4b4
Cr-Commit-Position: refs/heads/master@{#301582}

Powered by Google App Engine
This is Rietveld 408576698