Index: ipc/ipc_channel_nacl.h |
diff --git a/ipc/ipc_channel_nacl.h b/ipc/ipc_channel_nacl.h |
index f0649b2602228a8670b91bff3e3870fc2fb08a16..82ef6edc9d1601f8da5b1a1948573dbafe33912d 100644 |
--- a/ipc/ipc_channel_nacl.h |
+++ b/ipc/ipc_channel_nacl.h |
@@ -35,9 +35,11 @@ class ChannelNacl : public Channel, |
public internal::ChannelReader { |
public: |
// Mirror methods of Channel, see ipc_channel.h for description. |
+ // |broker| must outlive the newly created object. |
ChannelNacl(const IPC::ChannelHandle& channel_handle, |
Mode mode, |
- Listener* listener); |
+ Listener* listener, |
+ AttachmentBroker* broker); |
~ChannelNacl() override; |
// Channel implementation. |
@@ -46,6 +48,7 @@ class ChannelNacl : public Channel, |
bool Connect() override; |
void Close() override; |
bool Send(Message* message) override; |
+ AttachmentBroker* GetAttachmentBroker() override; |
// Posted to the main thread by ReaderThreadRunner. |
void DidRecvMsg(scoped_ptr<MessageContents> contents); |
@@ -114,6 +117,9 @@ class ChannelNacl : public Channel, |
base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_; |
+ // |broker_| must outlive this instance. |
+ AttachmentBroker* broker_; |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); |
}; |