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

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 5 months ago
Reviewers:
Tom Sepez, agl, agl2
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, abarth-chromium, ben+mojo_chromium.org, darin (slow to review)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stub in more IPC attachment brokering functionality. This CL fills in most of the logic for sending a Windows HANDLE from a non-broker process to the broker process. This consists of several small changes: - Create the new IPC messages AttachmentBrokerMsg_WinHandleHasBeenBrokered and AttachmentBrokerMsg_RequestBrokerageOfWinHandle. - Add a sender_ member variable to AttachmentBrokerWin. - Define the wire format for HandleAttachmentWin. - Add logic to ChannelWin to send AttachmentBrokerMsg_RequestBrokerageOfWinHandle for each HANDLE attachment. BUG=466437 Committed: https://crrev.com/eece6c3ca617b0d3c37ce137aba1d2079ab892e4 Cr-Commit-Position: refs/heads/master@{#337689}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Add IPC messages. #

Patch Set 4 : Compiles on Windows. #

Patch Set 5 : #

Patch Set 6 : cl format #

Patch Set 7 : Minor fixes. #

Patch Set 8 : Minor fixes. #

Patch Set 9 : Add missing files. #

Total comments: 30

Patch Set 10 : Comments from tsepez (still self-reviewing). #

Patch Set 11 : Comments from tsepez. #

Patch Set 12 : Add nacl gyp includes. #

Patch Set 13 : Rebase against top of tree. #

Patch Set 14 : More gn and gyp updates. #

Patch Set 15 : Continue to stumble around gn and gyp. #

Patch Set 16 : Test CL. Not for committing. #

Patch Set 17 : Fixing gn builds on Linux. #

Patch Set 18 : Try bot success. #

Patch Set 19 : Change the wireformat to use int32_t for HANDLE. #

Total comments: 7

Patch Set 20 : Comments from agl. #

Patch Set 21 : Add back changes to ipc_nacl.gyp. (and a small rebase against top of tree) #

Patch Set 22 : Rebase against top of tree. #

Patch Set 23 : Rebase properly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -197 lines) Patch
M crypto/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +174 lines, -161 lines 0 comments Download
M ipc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +7 lines, -0 lines 0 comments Download
M ipc/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ipc/attachment_broker.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
A ipc/attachment_broker_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +53 lines, -0 lines 0 comments Download
M ipc/attachment_broker_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -2 lines 0 comments Download
M ipc/attachment_broker_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -3 lines 0 comments Download
M ipc/brokerable_attachment.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -2 lines 0 comments Download
M ipc/brokerable_attachment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +20 lines, -1 line 0 comments Download
M ipc/handle_attachment_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +26 lines, -1 line 0 comments Download
A ipc/handle_attachment_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +34 lines, -0 lines 0 comments Download
M ipc/ipc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
M ipc/ipc.gypi View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
A ipc/ipc_handle_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
A ipc/ipc_handle_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M ipc/ipc_message.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_message.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download
M ipc/ipc_message_attachment.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/ipc_message_attachment_set.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_message_attachment_set.cc View 1 2 3 4 5 6 7 8 9 4 chunks +37 lines, -8 lines 0 comments Download
A + ipc/ipc_message_generator.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A + ipc/ipc_message_generator.cc View 1 2 1 chunk +7 lines, -8 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download
M ipc/ipc_nacl.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 18 19 20 2 chunks +2 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 80 (36 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/1
5 years, 6 months ago (2015-06-16 22:48:51 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/20001
5 years, 6 months ago (2015-06-16 22:55:27 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/77678)
5 years, 6 months ago (2015-06-16 23:01:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/140001
5 years, 6 months ago (2015-06-18 23:10:09 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 6 months ago (2015-06-18 23:10:14 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/140001
5 years, 6 months ago (2015-06-18 23:19:59 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/65242)
5 years, 6 months ago (2015-06-19 00:04:21 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/160001
5 years, 6 months ago (2015-06-19 00:12:37 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/99939)
5 years, 6 months ago (2015-06-19 00:25:03 UTC) #18
erikchen
tsepez: Please review. Let me know if you prefer that I split this into smaller ...
5 years, 6 months ago (2015-06-19 17:18:59 UTC) #20
Tom Sepez
https://codereview.chromium.org/1188923003/diff/160001/ipc/attachment_broker_messages.h File ipc/attachment_broker_messages.h (right): https://codereview.chromium.org/1188923003/diff/160001/ipc/attachment_broker_messages.h#newcode37 ipc/attachment_broker_messages.h:37: // Warning: This IPC message assumes that the sending ...
5 years, 6 months ago (2015-06-19 18:04:11 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/200001
5 years, 6 months ago (2015-06-22 22:56:55 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/72911)
5 years, 6 months ago (2015-06-22 23:10:11 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/220001
5 years, 6 months ago (2015-06-22 23:40:23 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/72936)
5 years, 6 months ago (2015-06-22 23:54:30 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/260001
5 years, 6 months ago (2015-06-23 01:10:25 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/72973)
5 years, 6 months ago (2015-06-23 01:20:04 UTC) #33
erikchen
On 2015/06/23 01:20:04, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 6 months ago (2015-06-23 01:42:34 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/280001
5 years, 6 months ago (2015-06-23 01:49:19 UTC) #37
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/72982)
5 years, 6 months ago (2015-06-23 01:57:21 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/300001
5 years, 6 months ago (2015-06-23 02:34:44 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73000)
5 years, 6 months ago (2015-06-23 02:44:16 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/320001
5 years, 6 months ago (2015-06-23 17:31:56 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73209)
5 years, 6 months ago (2015-06-23 17:43:18 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/360001
5 years, 6 months ago (2015-06-23 21:17:50 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73326)
5 years, 6 months ago (2015-06-23 21:29:04 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/380001
5 years, 6 months ago (2015-06-23 22:29:47 UTC) #54
erikchen
tsepez: PTAL agl: Looking for an OWNER review of crypto/BUILD.gn, as well as the new ...
5 years, 6 months ago (2015-06-23 22:37:00 UTC) #56
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73367)
5 years, 6 months ago (2015-06-23 22:42:06 UTC) #58
agl
https://codereview.chromium.org/1188923003/diff/380001/ipc/brokerable_attachment.cc File ipc/brokerable_attachment.cc (right): https://codereview.chromium.org/1188923003/diff/380001/ipc/brokerable_attachment.cc#newcode15 ipc/brokerable_attachment.cc:15: crypto::RandBytes(id.nonce, BrokerableAttachment::kNonceSize); What are the security requirements around this? ...
5 years, 6 months ago (2015-06-24 00:59:56 UTC) #59
erikchen
https://codereview.chromium.org/1188923003/diff/380001/ipc/brokerable_attachment.cc File ipc/brokerable_attachment.cc (right): https://codereview.chromium.org/1188923003/diff/380001/ipc/brokerable_attachment.cc#newcode15 ipc/brokerable_attachment.cc:15: crypto::RandBytes(id.nonce, BrokerableAttachment::kNonceSize); On 2015/06/24 00:59:56, agl wrote: > What ...
5 years, 6 months ago (2015-06-24 01:06:02 UTC) #60
agl
https://codereview.chromium.org/1188923003/diff/380001/crypto/BUILD.gn File crypto/BUILD.gn (right): https://codereview.chromium.org/1188923003/diff/380001/crypto/BUILD.gn#newcode12 crypto/BUILD.gn:12: "random.cc", This source list seems to be substantially different ...
5 years, 6 months ago (2015-06-24 01:28:57 UTC) #61
erikchen
https://codereview.chromium.org/1188923003/diff/380001/crypto/BUILD.gn File crypto/BUILD.gn (right): https://codereview.chromium.org/1188923003/diff/380001/crypto/BUILD.gn#newcode12 crypto/BUILD.gn:12: "random.cc", On 2015/06/24 01:28:57, agl wrote: > This source ...
5 years, 6 months ago (2015-06-24 17:50:25 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/400001
5 years, 6 months ago (2015-06-24 22:38:57 UTC) #64
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73761)
5 years, 6 months ago (2015-06-24 22:51:56 UTC) #66
Tom Sepez
lgtm
5 years, 5 months ago (2015-06-29 18:45:26 UTC) #67
erikchen
agl: ping?
5 years, 5 months ago (2015-07-06 16:35:48 UTC) #68
agl2
lgtm
5 years, 5 months ago (2015-07-07 20:27:43 UTC) #70
agl
lgtm
5 years, 5 months ago (2015-07-07 20:29:05 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/420001
5 years, 5 months ago (2015-07-07 20:30:50 UTC) #73
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/42568) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-07 20:34:14 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188923003/460001
5 years, 5 months ago (2015-07-07 20:49:49 UTC) #78
commit-bot: I haz the power
Committed patchset #23 (id:460001)
5 years, 5 months ago (2015-07-07 22:13:32 UTC) #79
commit-bot: I haz the power
5 years, 5 months ago (2015-07-07 22:14:34 UTC) #80
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/eece6c3ca617b0d3c37ce137aba1d2079ab892e4
Cr-Commit-Position: refs/heads/master@{#337689}

Powered by Google App Engine
This is Rietveld 408576698