Chromium Code Reviews| Index: ipc/ipc_channel_posix.h |
| diff --git a/ipc/ipc_channel_posix.h b/ipc/ipc_channel_posix.h |
| index 986eb8ae41a32faf3c0f4be040833087c34a718f..ef71714e2a2e152237965378bffaaa7b3ba8fcb9 100644 |
| --- a/ipc/ipc_channel_posix.h |
| +++ b/ipc/ipc_channel_posix.h |
| @@ -26,14 +26,17 @@ class IPC_EXPORT ChannelPosix : public Channel, |
| public internal::ChannelReader, |
| public base::MessageLoopForIO::Watcher { |
| public: |
| - ChannelPosix(const IPC::ChannelHandle& channel_handle, Mode mode, |
| - Listener* listener); |
| + ChannelPosix(const IPC::ChannelHandle& channel_handle, |
| + Mode mode, |
| + Listener* listener, |
| + AttachmentBroker* broker); |
| ~ChannelPosix() override; |
| // Channel implementation |
| bool Connect() override; |
| void Close() override; |
| bool Send(Message* message) override; |
| + AttachmentBroker* GetAttachmentBroker() override; |
| base::ProcessId GetPeerPID() const override; |
| base::ProcessId GetSelfPID() const override; |
| int GetClientFileDescriptor() const override; |
| @@ -175,6 +178,9 @@ class IPC_EXPORT ChannelPosix : public Channel, |
| static int global_pid_; |
| #endif // OS_LINUX |
| + // |broker_| must outlive this instance. |
|
Tom Sepez
2015/06/16 16:36:44
nit: ditto.
erikchen
2015/06/16 17:36:47
Done. I also went ahead and updated channel_win an
|
| + AttachmentBroker* broker_; |
| + |
| DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelPosix); |
| }; |