Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Unified Diff: ipc/ipc_channel_nacl.h

Issue 1185133006: IPC: Make ChannelReader inherit from SupportsAttachmentBrokering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase against https://codereview.chromium.org/1180313007/. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_channel_nacl.h
diff --git a/ipc/ipc_channel_nacl.h b/ipc/ipc_channel_nacl.h
index f0649b2602228a8670b91bff3e3870fc2fb08a16..a9d2139ca38c66eab991c3bd1cdd99f82f3cd97b 100644
--- a/ipc/ipc_channel_nacl.h
+++ b/ipc/ipc_channel_nacl.h
@@ -37,7 +37,8 @@ class ChannelNacl : public Channel,
// Mirror methods of Channel, see ipc_channel.h for description.
ChannelNacl(const IPC::ChannelHandle& channel_handle,
Mode mode,
- Listener* listener);
+ Listener* listener,
+ AttachmentBroker* broker);
~ChannelNacl() override;
// Channel implementation.
@@ -46,6 +47,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 +116,9 @@ class ChannelNacl : public Channel,
base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_;
+ // |broker_| must outlive this instance.
Tom Sepez 2015/06/16 16:36:44 nit: maybe move this comment to the ctor, where th
erikchen 2015/06/16 17:36:47 I kept the comment here, and added a similar comme
+ AttachmentBroker* broker_;
Will Harris 2015/06/16 13:06:04 where will this object be created and how will the
erikchen 2015/06/16 17:36:47 The short answer is: Each process is responsible f
+
DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl);
};
« no previous file with comments | « ipc/ipc_channel_factory.cc ('k') | ipc/ipc_channel_nacl.cc » ('j') | ipc/ipc_channel_posix.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698