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

Unified Diff: ppapi/nacl_irt/ppapi_dispatcher.cc

Issue 1174543002: ppapi: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix V8VarConverterTest. 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 | « ppapi/nacl_irt/ppapi_dispatcher.h ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/ppapi_dispatcher.cc
diff --git a/ppapi/nacl_irt/ppapi_dispatcher.cc b/ppapi/nacl_irt/ppapi_dispatcher.cc
index 1e7ad10a1c34e34f87edf8f79d46e439f11b22be..c8374bbc80c8960137dfc77274c53e63a6833a3a 100644
--- a/ppapi/nacl_irt/ppapi_dispatcher.cc
+++ b/ppapi/nacl_irt/ppapi_dispatcher.cc
@@ -9,7 +9,7 @@
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "build/build_config.h"
#include "components/tracing/child_trace_message_filter.h"
@@ -29,12 +29,13 @@
namespace ppapi {
-PpapiDispatcher::PpapiDispatcher(scoped_refptr<base::MessageLoopProxy> io_loop,
- base::WaitableEvent* shutdown_event,
- int browser_ipc_fd,
- int renderer_ipc_fd)
+PpapiDispatcher::PpapiDispatcher(
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ base::WaitableEvent* shutdown_event,
+ int browser_ipc_fd,
+ int renderer_ipc_fd)
: next_plugin_dispatcher_id_(0),
- message_loop_(io_loop),
+ task_runner_(io_task_runner),
shutdown_event_(shutdown_event),
renderer_ipc_fd_(renderer_ipc_fd) {
IPC::ChannelHandle channel_handle(
@@ -52,13 +53,12 @@ PpapiDispatcher::PpapiDispatcher(scoped_refptr<base::MessageLoopProxy> io_loop,
channel_->AddFilter(plugin_filter.get());
globals->RegisterResourceMessageFilters(plugin_filter.get());
- channel_->AddFilter(
- new tracing::ChildTraceMessageFilter(message_loop_.get()));
+ channel_->AddFilter(new tracing::ChildTraceMessageFilter(task_runner_.get()));
channel_->Init(channel_handle, IPC::Channel::MODE_SERVER, true);
}
base::SingleThreadTaskRunner* PpapiDispatcher::GetIPCTaskRunner() {
- return message_loop_.get();
+ return task_runner_.get();
}
base::WaitableEvent* PpapiDispatcher::GetShutdownEvent() {
« no previous file with comments | « ppapi/nacl_irt/ppapi_dispatcher.h ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698