Index: ipc/ipc_sync_channel.h |
diff --git a/ipc/ipc_sync_channel.h b/ipc/ipc_sync_channel.h |
index f8207ce1e3e4739296bbb4e144a38b018db62f25..5bbd46c5745351cdbf84adbc5cff28a53e6086af 100644 |
--- a/ipc/ipc_sync_channel.h |
+++ b/ipc/ipc_sync_channel.h |
@@ -72,14 +72,14 @@ class IPC_EXPORT SyncChannel : public ChannelProxy { |
const IPC::ChannelHandle& channel_handle, |
IPC::Channel::Mode mode, |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
bool create_pipe_now, |
base::WaitableEvent* shutdown_event); |
static scoped_ptr<SyncChannel> Create( |
scoped_ptr<ChannelFactory> factory, |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
bool create_pipe_now, |
base::WaitableEvent* shutdown_event); |
@@ -88,7 +88,7 @@ class IPC_EXPORT SyncChannel : public ChannelProxy { |
// added before any messages are sent or received. |
static scoped_ptr<SyncChannel> Create( |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
base::WaitableEvent* shutdown_event); |
virtual ~SyncChannel(); |
@@ -121,9 +121,10 @@ class IPC_EXPORT SyncChannel : public ChannelProxy { |
// ChannelProxy::Context for more information. |
class SyncContext : public Context { |
public: |
- SyncContext(Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
- base::WaitableEvent* shutdown_event); |
+ SyncContext( |
+ Listener* listener, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
+ base::WaitableEvent* shutdown_event); |
// Adds information about an outgoing sync message to the context so that |
// we know how to deserialize the reply. |
@@ -199,9 +200,10 @@ class IPC_EXPORT SyncChannel : public ChannelProxy { |
}; |
private: |
- SyncChannel(Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
- base::WaitableEvent* shutdown_event); |
+ SyncChannel( |
+ Listener* listener, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
+ base::WaitableEvent* shutdown_event); |
void OnWaitableEventSignaled(base::WaitableEvent* arg); |