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

Unified Diff: ipc/ipc_channel_common.cc

Issue 1185133006: IPC: Make ChannelReader inherit from SupportsAttachmentBrokering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from tsepez. 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
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_common.cc
diff --git a/ipc/ipc_channel_common.cc b/ipc/ipc_channel_common.cc
index 23b85e2834d2c2fe16ba712dc817e4acc9a5e30a..5438c661a301d5f7e467c646618242e5a53aef7b 100644
--- a/ipc/ipc_channel_common.cc
+++ b/ipc/ipc_channel_common.cc
@@ -8,36 +8,49 @@ namespace IPC {
// static
scoped_ptr<Channel> Channel::CreateClient(
- const IPC::ChannelHandle &channel_handle, Listener* listener) {
- return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener);
+ const IPC::ChannelHandle& channel_handle,
+ Listener* listener,
+ AttachmentBroker* broker) {
+ return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener,
+ broker);
}
// static
scoped_ptr<Channel> Channel::CreateNamedServer(
- const IPC::ChannelHandle &channel_handle, Listener* listener) {
- return Channel::Create(channel_handle, Channel::MODE_NAMED_SERVER, listener);
+ const IPC::ChannelHandle& channel_handle,
+ Listener* listener,
+ AttachmentBroker* broker) {
+ return Channel::Create(channel_handle, Channel::MODE_NAMED_SERVER, listener,
+ broker);
}
// static
scoped_ptr<Channel> Channel::CreateNamedClient(
- const IPC::ChannelHandle &channel_handle, Listener* listener) {
- return Channel::Create(channel_handle, Channel::MODE_NAMED_CLIENT, listener);
+ const IPC::ChannelHandle& channel_handle,
+ Listener* listener,
+ AttachmentBroker* broker) {
+ return Channel::Create(channel_handle, Channel::MODE_NAMED_CLIENT, listener,
+ broker);
}
#if defined(OS_POSIX)
// static
scoped_ptr<Channel> Channel::CreateOpenNamedServer(
- const IPC::ChannelHandle &channel_handle, Listener* listener) {
- return Channel::Create(channel_handle,
- Channel::MODE_OPEN_NAMED_SERVER,
- listener);
+ const IPC::ChannelHandle& channel_handle,
+ Listener* listener,
+ AttachmentBroker* broker) {
+ return Channel::Create(channel_handle, Channel::MODE_OPEN_NAMED_SERVER,
+ listener, broker);
}
#endif
// static
scoped_ptr<Channel> Channel::CreateServer(
- const IPC::ChannelHandle &channel_handle, Listener* listener) {
- return Channel::Create(channel_handle, Channel::MODE_SERVER, listener);
+ const IPC::ChannelHandle& channel_handle,
+ Listener* listener,
+ AttachmentBroker* broker) {
+ return Channel::Create(channel_handle, Channel::MODE_SERVER, listener,
+ broker);
}
Channel::~Channel() {
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698