summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sync_channel.cc
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-06-16 14:21:04 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-16 21:22:05 +0000
commit27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793 (patch)
tree7a4c8d42e0ff6f11b961130667dd9c1918b89ba9 /ipc/ipc_sync_channel.cc
parent7891daf96e1f86c4874107b3e2308216577bea25 (diff)
downloadchromium_src-27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793.zip
chromium_src-27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793.tar.gz
chromium_src-27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793.tar.bz2
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 Review URL: https://codereview.chromium.org/1185133006 Cr-Commit-Position: refs/heads/master@{#334699}
Diffstat (limited to 'ipc/ipc_sync_channel.cc')
-rw-r--r--ipc/ipc_sync_channel.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc
index 06cd46f..35b88a7 100644
--- a/ipc/ipc_sync_channel.cc
+++ b/ipc/ipc_sync_channel.cc
@@ -412,10 +412,11 @@ scoped_ptr<SyncChannel> SyncChannel::Create(
Listener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner,
bool create_pipe_now,
- base::WaitableEvent* shutdown_event) {
+ base::WaitableEvent* shutdown_event,
+ AttachmentBroker* broker) {
scoped_ptr<SyncChannel> channel =
Create(listener, ipc_task_runner, shutdown_event);
- channel->Init(channel_handle, mode, create_pipe_now);
+ channel->Init(channel_handle, mode, create_pipe_now, broker);
return channel.Pass();
}