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

Issue 738453003: Add a ChannelEndpointClient abstraction. (Closed)

Created:
6 years, 1 month ago by viettrungluu
Modified:
6 years, 1 month ago
Reviewers:
yzshen1
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
Project:
mojo
Visibility:
Public.

Description

Add a ChannelEndpointClient abstraction. This is to allow ChannelEndpoint to call things other than MessagePipe (and make ChannelEndpoint know only about "clients" and not message pipes). Clients can receive messages (from ChannelEndpoint, thus from Channel), and be told that they'll no longer receive messages. This is needed to allow Channel to handle certain "transitions" (when passing message pipes between processes) specially, without dumping code into MessagePipe. R=yzshen@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f99da059ef2d4f565dcda272b7cd94628ccedf51

Patch Set 1 #

Total comments: 8

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -77 lines) Patch
M mojo/edk/mojo_edk.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/channel.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M mojo/edk/system/channel_endpoint.h View 5 chunks +20 lines, -20 lines 0 comments Download
M mojo/edk/system/channel_endpoint.cc View 6 chunks +26 lines, -29 lines 0 comments Download
A mojo/edk/system/channel_endpoint_client.h View 1 chunk +62 lines, -0 lines 0 comments Download
M mojo/edk/system/message_pipe.h View 1 3 chunks +14 lines, -18 lines 0 comments Download
M mojo/edk/system/message_pipe.cc View 1 3 chunks +14 lines, -5 lines 0 comments Download
M mojo/edk/system/proxy_message_pipe_endpoint.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
viettrungluu
6 years, 1 month ago (2014-11-17 23:26:54 UTC) #1
yzshen1
https://codereview.chromium.org/738453003/diff/1/mojo/edk/system/channel.h File mojo/edk/system/channel.h (right): https://codereview.chromium.org/738453003/diff/1/mojo/edk/system/channel.h#newcode204 mojo/edk/system/channel.h:204: // are tied to the "remote" side. When |ChannelEndpoint::OnDisconnect()| ...
6 years, 1 month ago (2014-11-18 00:28:17 UTC) #2
viettrungluu
Thanks, PTAL. https://codereview.chromium.org/738453003/diff/1/mojo/edk/system/channel.h File mojo/edk/system/channel.h (right): https://codereview.chromium.org/738453003/diff/1/mojo/edk/system/channel.h#newcode204 mojo/edk/system/channel.h:204: // are tied to the "remote" side. ...
6 years, 1 month ago (2014-11-18 00:47:30 UTC) #3
yzshen1
lgtm
6 years, 1 month ago (2014-11-18 01:01:07 UTC) #4
viettrungluu
6 years, 1 month ago (2014-11-18 01:06:20 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f99da059ef2d4f565dcda272b7cd94628ccedf51 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698