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

Issue 60103005: Mojo: First stab at making MessagePipes work across OS pipes. (Closed)

Created:
7 years, 1 month ago by viettrungluu
Modified:
5 years, 4 months ago
CC:
chromium-reviews, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), erikwright+watch_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Mojo: First stab at making MessagePipes work across OS pipes. Given a running RawChannel, one can set up MessagePipes that have one endpoint available locally (in the usual way) and the other endpoint proxied to the other side of the OS-level "pipe" (which presumably has a symmetrical setup -- i.e., another RawChannel, etc.). Currently, this has only been tested in-process, but apart from possible synchronization/bootstrapping issues there's no reason it shouldn't work across processes. (Whatever launches the process will have to begin the bootstrapping by getting an OS pipe between processes and making sure things are appropriately synchronized.) Still to do: - Properly handle errors (e.g., due to the pipe/process dying). - Figure out how to start processes and bootstrap in that situation (and test this). R=darin@chromium.org, darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233638

Patch Set 1 #

Total comments: 13

Patch Set 2 : review comments + component build fixes #

Patch Set 3 : rebased #

Patch Set 4 : win components fix #

Patch Set 5 : another win fix #

Patch Set 6 : stub out RawChannel::Create() #

Patch Set 7 : make test posix-only #

Patch Set 8 : rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1281 lines, -115 lines) Patch
M base/compiler_specific.h View 1 chunk +22 lines, -0 lines 2 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
A mojo/system/channel.h View 1 1 chunk +142 lines, -0 lines 0 comments Download
A mojo/system/channel.cc View 1 1 chunk +215 lines, -0 lines 0 comments Download
M mojo/system/local_message_pipe_endpoint.h View 1 1 chunk +5 lines, -9 lines 0 comments Download
M mojo/system/local_message_pipe_endpoint.cc View 5 chunks +20 lines, -24 lines 0 comments Download
M mojo/system/message_in_transit.h View 1 3 chunks +46 lines, -11 lines 0 comments Download
M mojo/system/message_in_transit.cc View 1 3 chunks +19 lines, -8 lines 0 comments Download
M mojo/system/message_pipe.h View 3 chunks +22 lines, -0 lines 0 comments Download
M mojo/system/message_pipe.cc View 1 5 chunks +103 lines, -26 lines 0 comments Download
M mojo/system/message_pipe_dispatcher_unittest.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M mojo/system/message_pipe_endpoint.h View 1 2 3 3 chunks +19 lines, -8 lines 0 comments Download
M mojo/system/message_pipe_endpoint.cc View 1 3 chunks +11 lines, -4 lines 0 comments Download
M mojo/system/message_pipe_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A mojo/system/proxy_message_pipe_endpoint.h View 1 1 chunk +94 lines, -0 lines 0 comments Download
A mojo/system/proxy_message_pipe_endpoint.cc View 1 1 chunk +144 lines, -0 lines 0 comments Download
M mojo/system/raw_channel.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M mojo/system/raw_channel_posix.cc View 1 3 chunks +13 lines, -5 lines 0 comments Download
M mojo/system/raw_channel_posix_unittest.cc View 1 8 chunks +14 lines, -13 lines 0 comments Download
A mojo/system/raw_channel_win.cc View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A mojo/system/remote_message_pipe_posix_unittest.cc View 1 2 3 4 5 6 1 chunk +342 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
viettrungluu
I'm not super-happy with the way this is designed (it feels very complicated), but it'll ...
7 years, 1 month ago (2013-11-05 22:03:13 UTC) #1
darin (slow to review)
This all looks reasonable. LGTM w/ nits picked. I'm curious what you are unhappy about ...
7 years, 1 month ago (2013-11-06 18:25:59 UTC) #2
viettrungluu
On 2013/11/06 18:25:59, darin wrote: > This all looks reasonable. LGTM w/ nits picked. I'm ...
7 years, 1 month ago (2013-11-06 18:55:00 UTC) #3
darin (slow to review)
On Wed, Nov 6, 2013 at 10:55 AM, <viettrungluu@chromium.org> wrote: > On 2013/11/06 18:25:59, darin ...
7 years, 1 month ago (2013-11-06 20:23:11 UTC) #4
viettrungluu
Thanks for the review. https://codereview.chromium.org/60103005/diff/1/mojo/system/channel.cc File mojo/system/channel.cc (right): https://codereview.chromium.org/60103005/diff/1/mojo/system/channel.cc#newcode45 mojo/system/channel.cc:45: // TODO(vtl): Should there be ...
7 years, 1 month ago (2013-11-06 21:13:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/210001
7 years, 1 month ago (2013-11-06 21:32:28 UTC) #6
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-06 22:02:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/410001
7 years, 1 month ago (2013-11-06 22:24:56 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-07 00:03:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/620001
7 years, 1 month ago (2013-11-07 00:05:18 UTC) #10
commit-bot: I haz the power
Failed to trigger a try job on win HTTP Error 400: Bad Request
7 years, 1 month ago (2013-11-07 00:50:53 UTC) #11
darin (slow to review)
On Wed, Nov 6, 2013 at 1:13 PM, <viettrungluu@chromium.org> wrote: > Thanks for the review. ...
7 years, 1 month ago (2013-11-07 00:51:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/770001
7 years, 1 month ago (2013-11-07 00:52:18 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-07 02:13:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/910001
7 years, 1 month ago (2013-11-07 02:25:54 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-07 02:54:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/1100001
7 years, 1 month ago (2013-11-07 06:55:03 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-07 07:04:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/60103005/1100001
7 years, 1 month ago (2013-11-07 17:29:33 UTC) #19
viettrungluu
Committed patchset #8 manually as r233638 (presubmit successful).
7 years, 1 month ago (2013-11-07 17:49:57 UTC) #20
Nico
https://codereview.chromium.org/60103005/diff/1100001/base/compiler_specific.h File base/compiler_specific.h (right): https://codereview.chromium.org/60103005/diff/1100001/base/compiler_specific.h#newcode91 base/compiler_specific.h:91: #endif Ugh, can we just use an enum? That's ...
7 years, 1 month ago (2013-11-07 19:50:34 UTC) #21
viettrungluu
https://codereview.chromium.org/60103005/diff/1100001/base/compiler_specific.h File base/compiler_specific.h (right): https://codereview.chromium.org/60103005/diff/1100001/base/compiler_specific.h#newcode91 base/compiler_specific.h:91: #endif On 2013/11/07 19:50:35, Nico (ooo until Nov 12) ...
7 years, 1 month ago (2013-11-08 19:05:40 UTC) #22
Nico
On Fri, Nov 8, 2013 at 11:05 AM, <viettrungluu@chromium.org> wrote: > > https://codereview.chromium.org/60103005/diff/1100001/ > base/compiler_specific.h ...
7 years, 1 month ago (2013-11-09 06:34:41 UTC) #23
Nico
On 2013/11/09 06:34:41, Nico wrote: > On Fri, Nov 8, 2013 at 11:05 AM, <mailto:viettrungluu@chromium.org> ...
7 years ago (2013-12-02 21:47:54 UTC) #24
Nico
5 years, 4 months ago (2015-08-12 17:24:06 UTC) #25
Message was sent while issue was closed.
Another 20 months later, it's used in even fewer places. I'm removing it again
in https://codereview.chromium.org/1291623002/

Powered by Google App Engine
This is Rietveld 408576698