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

Issue 973513004: Allow data pipe producer/consumer handles to be re-sent. (Closed)

Created:
5 years, 9 months ago by viettrungluu
Modified:
5 years, 9 months ago
Reviewers:
Hajime Morrita
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Allow data pipe producer/consumer handles to be re-sent. I.e., implement the appropriate serialization methods in Remote{Producer,Consumer}DataPipeImpl. There's a bit of refactoring to share some code. There's also some clean-up/minor bug-fixing. TODO: We'll need to add more tests: * Sending data pipe handles when the data pipe already has data. * Sending a data pipe handle when someone's waiting on it (should result in "cancelled"). * Sending other types of handles when someone's waiting (ditto); I'm almost certain we have bugs here. R=morrita@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/006e0c80dc0595175861d3f840fcafdca328a8e0

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -164 lines) Patch
M mojo/edk/system/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/data_pipe.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_impl.h View 1 chunk +9 lines, -0 lines 0 comments Download
A mojo/edk/system/data_pipe_impl.cc View 1 chunk +50 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_impl_unittest.cc View 1 4 chunks +195 lines, -121 lines 0 comments Download
M mojo/edk/system/local_data_pipe_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M mojo/edk/system/local_data_pipe_impl.cc View 4 chunks +5 lines, -26 lines 0 comments Download
M mojo/edk/system/remote_consumer_data_pipe_impl.cc View 3 chunks +30 lines, -7 lines 0 comments Download
M mojo/edk/system/remote_producer_data_pipe_impl.cc View 3 chunks +35 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
viettrungluu
5 years, 9 months ago (2015-03-03 02:21:14 UTC) #1
Hajime Morrita
lgtm. https://codereview.chromium.org/973513004/diff/1/mojo/edk/system/data_pipe_impl_unittest.cc File mojo/edk/system/data_pipe_impl_unittest.cc (right): https://codereview.chromium.org/973513004/diff/1/mojo/edk/system/data_pipe_impl_unittest.cc#newcode386 mojo/edk/system/data_pipe_impl_unittest.cc:386: RemoteProducerDataPipeImplTestHelper::DoTransfer(); It might be clearer just to call ...
5 years, 9 months ago (2015-03-03 03:00:39 UTC) #2
viettrungluu
Thanks. https://codereview.chromium.org/973513004/diff/1/mojo/edk/system/data_pipe_impl_unittest.cc File mojo/edk/system/data_pipe_impl_unittest.cc (right): https://codereview.chromium.org/973513004/diff/1/mojo/edk/system/data_pipe_impl_unittest.cc#newcode386 mojo/edk/system/data_pipe_impl_unittest.cc:386: RemoteProducerDataPipeImplTestHelper::DoTransfer(); On 2015/03/03 03:00:38, morrita wrote: > It ...
5 years, 9 months ago (2015-03-03 05:17:45 UTC) #3
viettrungluu
5 years, 9 months ago (2015-03-03 05:18:04 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
006e0c80dc0595175861d3f840fcafdca328a8e0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698