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

Issue 169723004: RawChannel refactoring (Closed)

Created:
6 years, 10 months ago by yzshen1
Modified:
6 years, 9 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Restructure RawChannelPosix and RawChannel, so that the platform-independent logic can be shared between POSIX and Windows. BUG=None TEST=mojo_system_unittests R=viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253865

Patch Set 1 #

Total comments: 1

Patch Set 2 : raw_channel.cc #

Patch Set 3 : raw_channel_posix #

Patch Set 4 : some cleanup #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : split to have Schedule[Read|WriteNoLock] #

Patch Set 8 : introduce ReadBuffer / WriteBuffer #

Total comments: 34

Patch Set 9 : changes according to Trung's suggestions #

Patch Set 10 : support multi-segment write #

Total comments: 11

Patch Set 11 : #

Patch Set 12 : #

Total comments: 4

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -316 lines) Patch
M mojo/mojo.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/system/raw_channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +143 lines, -7 lines 0 comments Download
A mojo/system/raw_channel.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +344 lines, -0 lines 0 comments Download
M mojo/system/raw_channel_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +169 lines, -309 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
yzshen1
Hi, Trung. Would you please take a look at the new interface draft? I wish ...
6 years, 10 months ago (2014-02-22 23:49:06 UTC) #1
yzshen1
Hi, Trung. I think this CL is ready for serious review now. Please take a ...
6 years, 10 months ago (2014-02-24 05:19:04 UTC) #2
viettrungluu
I like things generally so far -- just some fairly minor organizational nits. (I still ...
6 years, 10 months ago (2014-02-25 01:30:06 UTC) #3
yzshen1
Thanks, Trung! https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h File mojo/system/raw_channel.h (right): https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h#newcode110 mojo/system/raw_channel.h:110: class IOBufferPreserver { On 2014/02/25 01:30:06, viettrungluu ...
6 years, 10 months ago (2014-02-25 05:16:33 UTC) #4
viettrungluu
https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h File mojo/system/raw_channel.h (right): https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h#newcode110 mojo/system/raw_channel.h:110: class IOBufferPreserver { On 2014/02/25 05:16:34, yzshen1 wrote: > ...
6 years, 9 months ago (2014-02-25 16:37:07 UTC) #5
viettrungluu
On 2014/02/25 16:37:07, viettrungluu wrote: > https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h > File mojo/system/raw_channel.h (right): > > https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h#newcode110 > ...
6 years, 9 months ago (2014-02-25 16:47:04 UTC) #6
viettrungluu
I apparently can't get all my thoughts down in a single, or even two, replies. ...
6 years, 9 months ago (2014-02-25 16:51:42 UTC) #7
yzshen1
Trung, please take another look. Thanks! https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h File mojo/system/raw_channel.h (right): https://codereview.chromium.org/169723004/diff/210001/mojo/system/raw_channel.h#newcode110 mojo/system/raw_channel.h:110: class IOBufferPreserver { ...
6 years, 9 months ago (2014-02-26 21:47:09 UTC) #8
viettrungluu
https://codereview.chromium.org/169723004/diff/300001/mojo/system/raw_channel.cc File mojo/system/raw_channel.cc (right): https://codereview.chromium.org/169723004/diff/300001/mojo/system/raw_channel.cc#newcode21 mojo/system/raw_channel.cc:21: namespace { Note that this anonymous namespace is redundant. ...
6 years, 9 months ago (2014-02-26 23:03:39 UTC) #9
yzshen1
Thanks Trung. Please take another look. https://codereview.chromium.org/169723004/diff/300001/mojo/system/raw_channel.cc File mojo/system/raw_channel.cc (right): https://codereview.chromium.org/169723004/diff/300001/mojo/system/raw_channel.cc#newcode21 mojo/system/raw_channel.cc:21: namespace { On ...
6 years, 9 months ago (2014-02-27 02:00:30 UTC) #10
viettrungluu
https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel.h File mojo/system/raw_channel.h (right): https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel.h#newcode124 mojo/system/raw_channel.h:124: typedef std::vector<std::pair<const char*, size_t> > BufferVector; I'd generally prefer ...
6 years, 9 months ago (2014-02-27 05:22:14 UTC) #11
yzshen1
Thanks Trung. Please take another look! https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel.h File mojo/system/raw_channel.h (right): https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel.h#newcode124 mojo/system/raw_channel.h:124: typedef std::vector<std::pair<const char*, ...
6 years, 9 months ago (2014-02-27 06:56:17 UTC) #12
viettrungluu
https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc File mojo/system/raw_channel_posix.cc (right): https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc#newcode150 mojo/system/raw_channel_posix.cc:150: iovec* iov = new iovec[buffers.size()]; On 2014/02/27 06:56:18, yzshen1 ...
6 years, 9 months ago (2014-02-27 07:36:34 UTC) #13
yzshen1
Thanks Trung. https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc File mojo/system/raw_channel_posix.cc (right): https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc#newcode150 mojo/system/raw_channel_posix.cc:150: iovec* iov = new iovec[buffers.size()]; > Isn't ...
6 years, 9 months ago (2014-02-27 16:19:32 UTC) #14
viettrungluu
https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc File mojo/system/raw_channel_posix.cc (right): https://codereview.chromium.org/169723004/diff/340001/mojo/system/raw_channel_posix.cc#newcode150 mojo/system/raw_channel_posix.cc:150: iovec* iov = new iovec[buffers.size()]; On 2014/02/27 16:19:33, yzshen1 ...
6 years, 9 months ago (2014-02-27 17:21:41 UTC) #15
yzshen1
6 years, 9 months ago (2014-02-27 18:13:28 UTC) #16
Message was sent while issue was closed.
Committed patchset #13 manually as r253865 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698