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

Issue 1185133006: IPC: Make ChannelReader inherit from SupportsAttachmentBrokering. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 6 months ago
Reviewers:
Tom Sepez, Will Harris
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: Make ChannelReader inherit from SupportsAttachmentBrokering. Each IPC::Channel will have a reference to an AttachmentBroker. This is accomplished by requiring each of the Channel::Create methods to have a |broker| parameter. For now, the |broker| parameter has a default value of nullptr. This default parameter only exists so that this CL and subsequent refactors can be decomposed into smaller CLs. The default parameter will be removed once all callers of Channel::Create have been updated to pass in an appropriate broker. BUG=493414 Committed: https://crrev.com/27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793 Cr-Commit-Position: refs/heads/master@{#334699}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase. #

Patch Set 4 : #

Patch Set 5 : Minor comment updates. #

Patch Set 6 : Rebase against https://codereview.chromium.org/1180313007/. #

Total comments: 6

Patch Set 7 : Comments from tsepez. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -146 lines) Patch
M ipc/ipc_channel.h View 3 chunks +30 lines, -8 lines 0 comments Download
M ipc/ipc_channel_common.cc View 1 chunk +25 lines, -12 lines 0 comments Download
M ipc/ipc_channel_factory.h View 2 chunks +5 lines, -2 lines 0 comments Download
M ipc/ipc_channel_factory.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M ipc/ipc_channel_nacl.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M ipc/ipc_channel_nacl.cc View 3 chunks +13 lines, -5 lines 0 comments Download
M ipc/ipc_channel_posix.h View 1 2 3 4 5 6 2 chunks +9 lines, -2 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 4 chunks +15 lines, -5 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 15 chunks +20 lines, -20 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 2 chunks +12 lines, -3 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M ipc/ipc_channel_proxy_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ipc/ipc_channel_reader.h View 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_channel_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ipc/ipc_channel_win.h View 1 2 3 4 5 6 2 chunks +9 lines, -2 lines 0 comments Download
M ipc/ipc_channel_win.cc View 4 chunks +15 lines, -6 lines 0 comments Download
M ipc/ipc_fuzzing_tests.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ipc/ipc_perftest_support.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_send_fds_test.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M ipc/ipc_sync_channel.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M ipc/ipc_test_base.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 1 2 3 4 5 6 2 chunks +17 lines, -4 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 5 10 chunks +42 lines, -20 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap.h View 2 chunks +4 lines, -1 line 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ipc/mojo/ipc_mojo_perftest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (8 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/1185133006/20001
5 years, 6 months ago (2015-06-15 22:18:55 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/82327) linux_chromium_gn_rel on ...
5 years, 6 months ago (2015-06-15 22:36:13 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185133006/40001
5 years, 6 months ago (2015-06-15 23:11:58 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/47927)
5 years, 6 months ago (2015-06-15 23:27:32 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185133006/60001
5 years, 6 months ago (2015-06-16 00:12:26 UTC) #10
erikchen
wfh: Please review. Note that this CL depends on https://codereview.chromium.org/1180313007/. Patch set 4 is functionally ...
5 years, 6 months ago (2015-06-16 01:18:39 UTC) #12
Will Harris
+tsepez for review
5 years, 6 months ago (2015-06-16 12:57:59 UTC) #14
Will Harris
This CL looks really complex. I will try and take a look but I am ...
5 years, 6 months ago (2015-06-16 12:59:40 UTC) #15
Will Harris
https://codereview.chromium.org/1185133006/diff/100001/ipc/ipc_channel_nacl.h File ipc/ipc_channel_nacl.h (right): https://codereview.chromium.org/1185133006/diff/100001/ipc/ipc_channel_nacl.h#newcode120 ipc/ipc_channel_nacl.h:120: AttachmentBroker* broker_; where will this object be created and ...
5 years, 6 months ago (2015-06-16 13:06:04 UTC) #16
Tom Sepez
Didn't see a class definition for SupportsAttachmentBrokerinng in the CL, does the class that inherits ...
5 years, 6 months ago (2015-06-16 16:36:45 UTC) #17
erikchen
On 2015/06/16 16:36:45, Tom Sepez wrote: > Didn't see a class definition for SupportsAttachmentBrokerinng in ...
5 years, 6 months ago (2015-06-16 17:18:35 UTC) #18
erikchen
tsepez: PTAL https://codereview.chromium.org/1185133006/diff/100001/ipc/ipc_channel_nacl.h File ipc/ipc_channel_nacl.h (right): https://codereview.chromium.org/1185133006/diff/100001/ipc/ipc_channel_nacl.h#newcode119 ipc/ipc_channel_nacl.h:119: // |broker_| must outlive this instance. On ...
5 years, 6 months ago (2015-06-16 17:36:48 UTC) #19
Tom Sepez
Looks like I was reviewing these in the wrong order. LGTM given the prior CL.
5 years, 6 months ago (2015-06-16 18:48:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185133006/120001
5 years, 6 months ago (2015-06-16 20:23:34 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-16 21:21:10 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 21:22:37 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793
Cr-Commit-Position: refs/heads/master@{#334699}

Powered by Google App Engine
This is Rietveld 408576698