Chromium Code Reviews| Index: ipc/attachment_broker_win.h |
| diff --git a/ipc/attachment_broker_win.h b/ipc/attachment_broker_win.h |
| index d9b927c7be9bde48860aaef1c74907a05514063a..f0b81711b78790d6e217fd7e0f00bb203dd20a56 100644 |
| --- a/ipc/attachment_broker_win.h |
| +++ b/ipc/attachment_broker_win.h |
| @@ -7,10 +7,11 @@ |
| #include "ipc/attachment_broker.h" |
| #include "ipc/ipc_export.h" |
| -#include "ipc/ipc_sender.h" |
| namespace IPC { |
| +class Sender; |
| + |
| // This class is an implementation of AttachmentBroker for the Windows platform. |
| class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker { |
| public: |
| @@ -23,10 +24,20 @@ class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker { |
| void OnReceiveDuplicatedHandle(HANDLE, BrokerableAttachment::AttachmentId id); |
| // IPC::AttachmentBroker overrides. |
| - void SendAttachmentToProcess(BrokerableAttachment* attachment, |
| + bool SendAttachmentToProcess(BrokerableAttachment* attachment, |
| base::ProcessId destination_process) override; |
| bool GetAttachmentWithId(BrokerableAttachment::AttachmentId id, |
| BrokerableAttachment* attachment) override; |
| + |
| + // |sender_| is used to send Messages to the broker. |sender_| must live at |
| + // least as long as this instance. |
| + void SetSender(IPC::Sender* sender); |
|
Tom Sepez
2015/06/19 18:04:10
nit: |set_sender()| for this trivial method.
erikchen
2015/06/23 22:36:59
Done.
|
| + |
| + private: |
| + // |sender_| is used to send Messages to the broker. |sender_| must live at |
| + // least as long as this instance. |
| + IPC::Sender* sender_; |
| + DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerWin); |
| }; |
| } // namespace IPC |