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

Unified Diff: ppapi/shared_impl/ppapi_globals.h

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/proxy/tracked_callback_unittest.cc ('k') | ppapi/shared_impl/ppapi_globals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppapi_globals.h
diff --git a/ppapi/shared_impl/ppapi_globals.h b/ppapi/shared_impl/ppapi_globals.h
index a98d8979383c5c1ba65c34622e4b9ecb437293ff..bf8950318839d827bf214ce8f4bb4afcb88aef3d 100644
--- a/ppapi/shared_impl/ppapi_globals.h
+++ b/ppapi/shared_impl/ppapi_globals.h
@@ -20,7 +20,7 @@
#include "ui/events/latency_info.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
class TaskRunner;
}
@@ -101,9 +101,9 @@ class PPAPI_SHARED_EXPORT PpapiGlobals {
// failure.
virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0;
- // Returns the base::MessageLoopProxy for the main thread. This is set in the
- // constructor, so PpapiGlobals must be created on the main thread.
- base::MessageLoopProxy* GetMainThreadMessageLoop();
+ // Returns the base::SingleThreadTaskRunner for the main thread. This is set
+ // in the constructor, so PpapiGlobals must be created on the main thread.
+ base::SingleThreadTaskRunner* GetMainThreadMessageLoop();
// In tests, the PpapiGlobals object persists across tests but the MLP pointer
// it hangs on will go stale and the next PPAPI test will crash because of
@@ -150,7 +150,7 @@ class PPAPI_SHARED_EXPORT PpapiGlobals {
// threads to have distinct "globals".
static PpapiGlobals* GetThreadLocalPointer();
- scoped_refptr<base::MessageLoopProxy> main_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
// If an input event is believed to have caused rendering damage, its latency
// info is cached in |latency_info_for_frame_| indexed by instance. These
« no previous file with comments | « ppapi/proxy/tracked_callback_unittest.cc ('k') | ppapi/shared_impl/ppapi_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698