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

Issue 118873004: Mojo: DataPipe: Write some docs and rationalize some return values. (Closed)

Created:
6 years, 11 months ago by viettrungluu
Modified:
6 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Mojo: DataPipe: Write some docs and rationalize some return values. In "all or none" mode, return "out of range" if the required amount of space/data isn't available, unless the other end isn't open (in which case return "failed precondition"). Don't return "should wait", since you can't wait for a specified amount of space/data to be available. (Only return "should wait" when waiting would actually solve your problem.) Note: Still have to write docs for the two-phase DataPipe APIs (but I want to fully test/hash out their semantics first). R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243327

Patch Set 1 #

Patch Set 2 : comment fixes #

Total comments: 8

Patch Set 3 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -12 lines) Patch
M mojo/public/system/core.h View 1 2 3 chunks +104 lines, -0 lines 0 comments Download
M mojo/system/local_data_pipe.cc View 6 chunks +26 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
viettrungluu
6 years, 11 months ago (2014-01-06 23:53:52 UTC) #1
darin (slow to review)
LGTM https://codereview.chromium.org/118873004/diff/50001/mojo/public/system/core.h File mojo/public/system/core.h (right): https://codereview.chromium.org/118873004/diff/50001/mojo/public/system/core.h#newcode448 mojo/public/system/core.h:448: // will have an element size of one ...
6 years, 11 months ago (2014-01-07 04:28:47 UTC) #2
viettrungluu
Thanks. https://codereview.chromium.org/118873004/diff/50001/mojo/public/system/core.h File mojo/public/system/core.h (right): https://codereview.chromium.org/118873004/diff/50001/mojo/public/system/core.h#newcode448 mojo/public/system/core.h:448: // will have an element size of one ...
6 years, 11 months ago (2014-01-07 05:45:25 UTC) #3
darin (slow to review)
On Mon, Jan 6, 2014 at 9:45 PM, <viettrungluu@chromium.org> wrote: > Thanks. > > > ...
6 years, 11 months ago (2014-01-07 05:47:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/118873004/140001
6 years, 11 months ago (2014-01-07 09:57:31 UTC) #5
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) app_list_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chromedriver_unittests, ...
6 years, 11 months ago (2014-01-07 10:55:12 UTC) #6
viettrungluu
6 years, 11 months ago (2014-01-07 17:50:13 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r243327 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698