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

Issue 1385143002: ipc: Update MachPortMac ownership semantics. (Closed)

Created:
5 years, 2 months ago by erikchen
Modified:
5 years, 2 months ago
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ipc: Update MachPortMac ownership semantics. This CL consists of a small refactor, a small change in ownership semantics, and a lot of documentation. The refactor removes a |const| qualifier from brokerable message attachments that are passed to the attachment broker. This allows for an improvement to ownership semantics for MachPortMac. BUG=535711 Committed: https://crrev.com/3722a32d89d1fa27b7510d82d14e94f0ea68aa9a Cr-Commit-Position: refs/heads/master@{#352938}

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : Comments from tsepez. #

Patch Set 4 : Refactor, update ownership semantics. #

Patch Set 5 : REbase. #

Patch Set 6 : Fix rebase errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -36 lines) Patch
M ipc/attachment_broker.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_privileged_mac.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_privileged_mac.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_privileged_win.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_privileged_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_privileged_win_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_unprivileged_mac.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_unprivileged_mac.cc View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
M ipc/attachment_broker_unprivileged_win.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/attachment_broker_unprivileged_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_reader.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_reader_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_win.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_message.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_message_attachment_set.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_attachment_set.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/mach_port_attachment_mac.h View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M ipc/mach_port_attachment_mac.cc View 1 2 3 1 chunk +24 lines, -5 lines 0 comments Download
M ipc/mach_port_mac.h View 1 2 3 1 chunk +45 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
erikchen
mark: Please review. Note that these updated semantics are not yet reflected in attachment_broker_privileged_mac.cc, which ...
5 years, 2 months ago (2015-10-06 01:12:44 UTC) #2
Mark Mentovai
LGTM
5 years, 2 months ago (2015-10-06 13:43:04 UTC) #3
erikchen
tsepez: Please review.
5 years, 2 months ago (2015-10-06 15:54:49 UTC) #5
Tom Sepez
Code is fine, I just want to see if we can't make your comments clearer ...
5 years, 2 months ago (2015-10-06 16:09:09 UTC) #6
erikchen
tsepez: Please review. As I rewrote/expanded the documentation in MachPortMac, I decided that I wanted ...
5 years, 2 months ago (2015-10-06 20:40:43 UTC) #7
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-07 17:28:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1385143002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1385143002/60001
5 years, 2 months ago (2015-10-07 17:55:00 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/120697) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-07 18:14:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1385143002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1385143002/100001
5 years, 2 months ago (2015-10-07 19:29:25 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-07 20:52:07 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 20:53:08 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3722a32d89d1fa27b7510d82d14e94f0ea68aa9a
Cr-Commit-Position: refs/heads/master@{#352938}

Powered by Google App Engine
This is Rietveld 408576698