ipc: Make a new class PlaceholderBrokerableAttachment.
commit87351da8166440ba0978a3c74701aa8242b72295
authorerikchen <erikchen@chromium.org>
Tue, 15 Sep 2015 19:11:09 +0000 (15 12:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 19:11:57 +0000 (15 19:11 +0000)
tree2ceef6f3a1f83f570d01df967c79e1ed62e4074d
parent653d6a4002363db6341d683b04baa68b0b244bed
ipc: Make a new class PlaceholderBrokerableAttachment.

Instances of this class need to be replaced before the message can be
dispatched. This mechanism is a lot cleaner than the previous mechanism, which
had an "unbrokered" state for every type of BrokerableAttachment, which had to
be mutated before being dispatched.

BUG=493414

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

Cr-Commit-Position: refs/heads/master@{#348952}
16 files changed:
ipc/BUILD.gn
ipc/attachment_broker_privileged_win.cc
ipc/attachment_broker_unprivileged_win.cc
ipc/brokerable_attachment.cc
ipc/brokerable_attachment.h
ipc/handle_attachment_win.cc
ipc/handle_attachment_win.h
ipc/ipc.gypi
ipc/ipc_channel_reader.cc
ipc/ipc_channel_reader_unittest.cc
ipc/ipc_message.cc
ipc/ipc_message.h
ipc/ipc_message_attachment_set.cc
ipc/ipc_message_attachment_set.h
ipc/placeholder_brokerable_attachment.cc [new file with mode: 0644]
ipc/placeholder_brokerable_attachment.h [new file with mode: 0644]