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

Unified Diff: content/child/npapi/np_channel_base.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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 | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/npapi/np_channel_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/np_channel_base.h
diff --git a/content/child/npapi/np_channel_base.h b/content/child/npapi/np_channel_base.h
index d718936425fece594816ab5f54414afe710bb83f..3a8c9e36dac57b543e87fa302306ceef9f5edcd0 100644
--- a/content/child/npapi/np_channel_base.h
+++ b/content/child/npapi/np_channel_base.h
@@ -18,7 +18,7 @@
#include "ipc/ipc_sync_channel.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace content {
@@ -100,9 +100,12 @@ class NPChannelBase : public IPC::Listener,
// must still ref count the returned value. When there are no more routes
// on the channel and its ref count is 0, the object deletes itself.
static NPChannelBase* GetChannel(
- const IPC::ChannelHandle& channel_handle, IPC::Channel::Mode mode,
- ChannelFactory factory, base::MessageLoopProxy* ipc_message_loop,
- bool create_pipe_now, base::WaitableEvent* shutdown_event);
+ const IPC::ChannelHandle& channel_handle,
+ IPC::Channel::Mode mode,
+ ChannelFactory factory,
+ base::SingleThreadTaskRunner* ipc_task_runner,
+ bool create_pipe_now,
+ base::WaitableEvent* shutdown_event);
// Sends a message to all instances.
static void Broadcast(IPC::Message* message);
@@ -124,7 +127,7 @@ class NPChannelBase : public IPC::Listener,
send_unblocking_only_during_unblock_dispatch_ = true;
}
- virtual bool Init(base::MessageLoopProxy* ipc_message_loop,
+ virtual bool Init(base::SingleThreadTaskRunner* ipc_task_runner,
bool create_pipe_now,
base::WaitableEvent* shutdown_event);
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/npapi/np_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698