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

Issue 866223005: IPC: Add MojoHandleAttachment (Closed)

Created:
5 years, 10 months ago by Hajime Morrita
Modified:
5 years, 10 months ago
Reviewers:
agl, viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IPC: Add MojoHandleAttachment This CL introduces MojoHandleAttachment, a MessageAttachment subclass. With this and ChannelMojo, we are able to send Mojo MessagePipes over IPC. There is also MojoMessageHelper which provides some static member functions that reads and writes MessagePipes from/to a Message. In coming changes, we'll add ParamTraits for MessagePipe based on this. R=agl@chromium.org, viettrungluu@chromium.org TEST=IPCChannelMojoTest.SendMessagePipe, IPCChannelMojoTest.SendPlatformHandleAndPipe BUG=448190 Committed: https://crrev.com/81b17e069328d70e1008c958251ff1ddfed5b4f8 Cr-Commit-Position: refs/heads/master@{#314930}

Patch Set 1 #

Patch Set 2 : Fixing windows buld error #

Total comments: 12

Patch Set 3 : Updated #

Patch Set 4 : Fixing windows build... :-/ #

Patch Set 5 : Fixing windows build again... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -95 lines) Patch
M ipc/ipc_channel_nacl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_message.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/ipc_message_attachment.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M ipc/ipc_message_attachment_set.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M ipc/ipc_message_attachment_set.cc View 1 2 3 4 chunks +13 lines, -6 lines 0 comments Download
M ipc/mojo/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 2 chunks +1 line, -2 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 3 chunks +60 lines, -48 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 1 2 3 4 6 chunks +205 lines, -33 lines 0 comments Download
M ipc/mojo/ipc_mojo.gyp View 1 chunk +4 lines, -0 lines 0 comments Download
A ipc/mojo/ipc_mojo_handle_attachment.h View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A ipc/mojo/ipc_mojo_handle_attachment.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A ipc/mojo/ipc_mojo_message_helper.h View 1 chunk +29 lines, -0 lines 0 comments Download
A ipc/mojo/ipc_mojo_message_helper.cc View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Hajime Morrita
5 years, 10 months ago (2015-02-03 23:10:34 UTC) #1
Hajime Morrita
agl: PTAL at ipc/* ? It's a minor change. Trung: PTAL at ipc/mojo ?
5 years, 10 months ago (2015-02-03 23:12:22 UTC) #2
Hajime Morrita
The description was broken. It should be "IPC: Add MojoHandleAttachment". Corrected.
5 years, 10 months ago (2015-02-03 23:34:21 UTC) #3
agl
https://codereview.chromium.org/866223005/diff/20001/ipc/ipc_message.cc File ipc/ipc_message.cc (right): https://codereview.chromium.org/866223005/diff/20001/ipc/ipc_message.cc#newcode159 ipc/ipc_message.cc:159: return attachment_set_.get() && attachment_set_->num_mojo_handles(); Feel free to ignore: put ...
5 years, 10 months ago (2015-02-04 00:17:47 UTC) #4
Hajime Morrita
PTAL? https://codereview.chromium.org/866223005/diff/20001/ipc/ipc_message.cc File ipc/ipc_message.cc (right): https://codereview.chromium.org/866223005/diff/20001/ipc/ipc_message.cc#newcode159 ipc/ipc_message.cc:159: return attachment_set_.get() && attachment_set_->num_mojo_handles(); On 2015/02/04 00:17:46, agl ...
5 years, 10 months ago (2015-02-04 00:44:51 UTC) #5
agl
lgtm https://codereview.chromium.org/866223005/diff/20001/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/866223005/diff/20001/ipc/mojo/ipc_channel_mojo.cc#newcode389 ipc/mojo/ipc_channel_mojo.cc:389: case MessageAttachment::TYPE_MOJO_HANDLE: { On 2015/02/04 00:44:51, morrita wrote: ...
5 years, 10 months ago (2015-02-04 00:49:06 UTC) #6
Hajime Morrita
Thanks! Trung: Ping? https://codereview.chromium.org/866223005/diff/20001/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/866223005/diff/20001/ipc/mojo/ipc_channel_mojo.cc#newcode389 ipc/mojo/ipc_channel_mojo.cc:389: case MessageAttachment::TYPE_MOJO_HANDLE: { On 2015/02/04 00:49:06, ...
5 years, 10 months ago (2015-02-05 00:42:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/866223005/80001
5 years, 10 months ago (2015-02-06 00:21:44 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-06 00:59:07 UTC) #11
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 00:59:59 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/81b17e069328d70e1008c958251ff1ddfed5b4f8
Cr-Commit-Position: refs/heads/master@{#314930}

Powered by Google App Engine
This is Rietveld 408576698