summaryrefslogtreecommitdiffstats
path: root/ipc/handle_attachment_win.cc
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-07-14 18:35:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-15 01:36:23 +0000
commit7252aa363e57e6a621ee719f0137d5e827e90cec (patch)
tree6bdcf22fe71dceabb5cc301db4dc0e1cc0881ea8 /ipc/handle_attachment_win.cc
parent96e4c93265087707ff511711d019820575b803a1 (diff)
downloadchromium_src-7252aa363e57e6a621ee719f0137d5e827e90cec.zip
chromium_src-7252aa363e57e6a621ee719f0137d5e827e90cec.tar.gz
chromium_src-7252aa363e57e6a621ee719f0137d5e827e90cec.tar.bz2
Make attachment broker a subclass of IPC::Listener.
In addition, hook up the IPC::Listener functionality in non-broker proceses. BUG=466437 Review URL: https://codereview.chromium.org/1205713002 Cr-Commit-Position: refs/heads/master@{#338798}
Diffstat (limited to 'ipc/handle_attachment_win.cc')
-rw-r--r--ipc/handle_attachment_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipc/handle_attachment_win.cc b/ipc/handle_attachment_win.cc
index 3c18828..dfce7c2 100644
--- a/ipc/handle_attachment_win.cc
+++ b/ipc/handle_attachment_win.cc
@@ -13,6 +13,11 @@ HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle)
: handle_(handle) {
}
+HandleAttachmentWin::HandleAttachmentWin(const WireFormat& wire_format)
+ : BrokerableAttachment(wire_format.attachment_id),
+ handle_(LongToHandle(wire_format.handle)) {
+}
+
HandleAttachmentWin::~HandleAttachmentWin() {
}