| Index: ipc/ipc_channel_win.h
|
| diff --git a/ipc/ipc_channel_win.h b/ipc/ipc_channel_win.h
|
| index 04990d4e84eb667977e65cc8239fc6eab3258d60..c720377c8c8f77066ee071207cfcdf2517c015b6 100644
|
| --- a/ipc/ipc_channel_win.h
|
| +++ b/ipc/ipc_channel_win.h
|
| @@ -27,14 +27,18 @@ class ChannelWin : public Channel,
|
| public base::MessageLoopForIO::IOHandler {
|
| public:
|
| // Mirror methods of Channel, see ipc_channel.h for description.
|
| - ChannelWin(const IPC::ChannelHandle &channel_handle, Mode mode,
|
| - Listener* listener);
|
| + // |broker| must outlive the newly created object.
|
| + ChannelWin(const IPC::ChannelHandle& channel_handle,
|
| + Mode mode,
|
| + Listener* listener,
|
| + AttachmentBroker* broker);
|
| ~ChannelWin() 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;
|
|
|
| @@ -104,6 +108,9 @@ class ChannelWin : public Channel,
|
| scoped_ptr<base::ThreadChecker> thread_check_;
|
| base::WeakPtrFactory<ChannelWin> weak_factory_;
|
|
|
| + // |broker_| must outlive this instance.
|
| + AttachmentBroker* broker_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChannelWin);
|
| };
|
|
|
|
|