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}
diff --git a/ipc/handle_attachment_win.h b/ipc/handle_attachment_win.h
index 7dd898ad..5b75282 100644
--- a/ipc/handle_attachment_win.h
+++ b/ipc/handle_attachment_win.h
@@ -31,13 +31,16 @@
AttachmentId attachment_id;
};
- HandleAttachmentWin(const HANDLE& handle);
+ explicit HandleAttachmentWin(const HANDLE& handle);
+ explicit HandleAttachmentWin(const WireFormat& wire_format);
BrokerableType GetBrokerableType() const override;
// Returns the wire format of this attachment.
WireFormat GetWireFormat(const base::ProcessId& destination) const;
+ HANDLE get_handle() const { return handle_; }
+
private:
~HandleAttachmentWin() override;
HANDLE handle_;