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

Unified Diff: ipc/ipc_channel_common.cc

Issue 2159293002: Plumb explicit IPC task runner through to IPC::Channel creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dcheck Created 4 years, 5 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 e85aa61a22eaba2c895997afc2a41e376295cb85..e3f6558d6877546db2434c1f046f84c89be7cbcd 100644
--- a/ipc/ipc_channel_common.cc
+++ b/ipc/ipc_channel_common.cc
@@ -12,11 +12,12 @@ namespace IPC {
// static
std::unique_ptr<Channel> Channel::CreateClient(
const IPC::ChannelHandle& channel_handle,
- Listener* listener) {
+ Listener* listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
if (channel_handle.mojo_handle.is_valid()) {
return ChannelMojo::Create(
mojo::ScopedMessagePipeHandle(channel_handle.mojo_handle),
- Channel::MODE_CLIENT, listener);
+ Channel::MODE_CLIENT, listener, ipc_task_runner);
}
return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener);
}
@@ -38,11 +39,12 @@ std::unique_ptr<Channel> Channel::CreateNamedClient(
// static
std::unique_ptr<Channel> Channel::CreateServer(
const IPC::ChannelHandle& channel_handle,
- Listener* listener) {
+ Listener* listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
if (channel_handle.mojo_handle.is_valid()) {
return ChannelMojo::Create(
mojo::ScopedMessagePipeHandle(channel_handle.mojo_handle),
- Channel::MODE_SERVER, listener);
+ Channel::MODE_SERVER, listener, ipc_task_runner);
}
return Channel::Create(channel_handle, Channel::MODE_SERVER, listener);
}
« 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