ipc: Clean up interface of attachment broker.
commit9a06836982214f2edced21bbd1615b49e7f231bf
authorerikchen <erikchen@chromium.org>
Thu, 30 Jul 2015 17:19:37 +0000 (30 10:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Jul 2015 17:20:08 +0000 (30 17:20 +0000)
tree45c6f85c1e0decad572b233258f98c48ad9a382a
parent5875bbe25191cbda9ffc430a8f02433833e8b981
ipc: Clean up interface of attachment broker.

AttachmentBrokerUnprivileged now has a method
DesignateBrokerCommunicationChannel which is used by non-broker processes to
designate an IPC::Channel as the communication medium for brokerable attachment
messages. IPC::Channel has a new member attachment_broker_endpoint_ which causes
it to pass all messages through the attachment broker before forwarding them to
the listener.

BUG=493414

Review URL: https://codereview.chromium.org/1269553003

Cr-Commit-Position: refs/heads/master@{#341143}
14 files changed:
ipc/attachment_broker_privileged.cc
ipc/attachment_broker_privileged_win_unittest.cc
ipc/attachment_broker_unprivileged.cc
ipc/attachment_broker_unprivileged.h
ipc/ipc_channel.h
ipc/ipc_channel_nacl.cc
ipc/ipc_channel_nacl.h
ipc/ipc_channel_posix.cc
ipc/ipc_channel_posix.h
ipc/ipc_channel_reader.cc
ipc/ipc_channel_reader.h
ipc/ipc_channel_reader_unittest.cc
ipc/ipc_channel_win.cc
ipc/ipc_channel_win.h