IPC: Make ChannelReader inherit from SupportsAttachmentBrokering.
commit27aa7d8b9e17ed5dd8f6b247c87ae7988f61d793
authorerikchen <erikchen@chromium.org>
Tue, 16 Jun 2015 21:21:04 +0000 (16 14:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 21:22:05 +0000 (16 21:22 +0000)
tree7a4c8d42e0ff6f11b961130667dd9c1918b89ba9
parent7891daf96e1f86c4874107b3e2308216577bea25
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}
31 files changed:
ipc/ipc_channel.h
ipc/ipc_channel_common.cc
ipc/ipc_channel_factory.cc
ipc/ipc_channel_factory.h
ipc/ipc_channel_nacl.cc
ipc/ipc_channel_nacl.h
ipc/ipc_channel_posix.cc
ipc/ipc_channel_posix.h
ipc/ipc_channel_posix_unittest.cc
ipc/ipc_channel_proxy.cc
ipc/ipc_channel_proxy.h
ipc/ipc_channel_proxy_unittest.cc
ipc/ipc_channel_reader.h
ipc/ipc_channel_unittest.cc
ipc/ipc_channel_win.cc
ipc/ipc_channel_win.h
ipc/ipc_fuzzing_tests.cc
ipc/ipc_perftest_support.cc
ipc/ipc_send_fds_test.cc
ipc/ipc_sync_channel.cc
ipc/ipc_sync_channel.h
ipc/ipc_sync_channel_unittest.cc
ipc/ipc_test_base.cc
ipc/mojo/ipc_channel_mojo.cc
ipc/mojo/ipc_channel_mojo.h
ipc/mojo/ipc_channel_mojo_unittest.cc
ipc/mojo/ipc_mojo_bootstrap.cc
ipc/mojo/ipc_mojo_bootstrap.h
ipc/mojo/ipc_mojo_bootstrap_unittest.cc
ipc/mojo/ipc_mojo_perftest.cc
ipc/sync_socket_unittest.cc