summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_proxy.h
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-08-28 09:59:29 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-28 17:00:33 +0000
commitfd03370152e9020155b53ac3d381303b78b20486 (patch)
tree886c95478204be3c682e3c0218ab82b8a170a069 /ipc/ipc_channel_proxy.h
parent43890436b2626f803ddbdacc70f29929fbd89ae2 (diff)
downloadchromium_src-fd03370152e9020155b53ac3d381303b78b20486.zip
chromium_src-fd03370152e9020155b53ac3d381303b78b20486.tar.gz
chromium_src-fd03370152e9020155b53ac3d381303b78b20486.tar.bz2
Manual fixups for scoped_refptr operator T* removal in ipc/
BUG=110610 Review URL: https://codereview.chromium.org/512153002 Cr-Commit-Position: refs/heads/master@{#292404}
Diffstat (limited to 'ipc/ipc_channel_proxy.h')
-rw-r--r--ipc/ipc_channel_proxy.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h
index e76e56f..4731e18 100644
--- a/ipc/ipc_channel_proxy.h
+++ b/ipc/ipc_channel_proxy.h
@@ -69,12 +69,12 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe {
const IPC::ChannelHandle& channel_handle,
Channel::Mode mode,
Listener* listener,
- base::SingleThreadTaskRunner* ipc_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
static scoped_ptr<ChannelProxy> Create(
scoped_ptr<ChannelFactory> factory,
Listener* listener,
- base::SingleThreadTaskRunner* ipc_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
virtual ~ChannelProxy();
@@ -131,14 +131,16 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe {
// to the internal state.
ChannelProxy(Context* context);
- ChannelProxy(Listener* listener,
- base::SingleThreadTaskRunner* ipc_task_runner);
+ ChannelProxy(
+ Listener* listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
// Used internally to hold state that is referenced on the IPC thread.
class Context : public base::RefCountedThreadSafe<Context>,
public Listener {
public:
- Context(Listener* listener, base::SingleThreadTaskRunner* ipc_thread);
+ Context(Listener* listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_thread);
void ClearIPCTaskRunner();
base::SingleThreadTaskRunner* ipc_task_runner() const {
return ipc_task_runner_.get();