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

Unified Diff: ppapi/shared_impl/ppapi_globals.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 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/proxy_array_output.h ('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 8e2b94a8c8b35ba79e3a6acbeae7a96bbb867a0f..00fb9b16e12ef8e1f9151dca5172a71866fd4ab4 100644
--- a/ppapi/shared_impl/ppapi_globals.h
+++ b/ppapi/shared_impl/ppapi_globals.h
@@ -17,6 +17,7 @@
namespace base {
class Lock;
+class MessageLoopProxy;
}
namespace ppapi {
@@ -101,6 +102,11 @@ class PPAPI_SHARED_EXPORT PpapiGlobals {
// failure.
virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0;
+ // Returns the base::MessageLoopProxy for the main thread. Note that this must
+ // be called on the main thread the first time so that it can initialize
+ // its static data.
+ base::MessageLoopProxy* GetMainThreadMessageLoop();
+
// Returns the command line for the process.
virtual std::string GetCmdLine() = 0;
« no previous file with comments | « ppapi/proxy/proxy_array_output.h ('k') | ppapi/shared_impl/ppapi_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698