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

Unified Diff: ppapi/shared_impl/test_globals.cc

Issue 10910099: PPAPI: Make CompletionCallbacks work right on background threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 1 month 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/shared_impl/test_globals.h ('k') | ppapi/shared_impl/tracked_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/test_globals.cc
diff --git a/ppapi/shared_impl/test_globals.cc b/ppapi/shared_impl/test_globals.cc
index f8997dcb8d4c8f6ef709fb46f219c7c278bc650c..b1dc0fe0e5fe631209758acb06cc375a9c4e5a30 100644
--- a/ppapi/shared_impl/test_globals.cc
+++ b/ppapi/shared_impl/test_globals.cc
@@ -69,4 +69,14 @@ void TestGlobals::BroadcastLogWithSource(PP_Module module,
const std::string& value) {
}
+MessageLoopShared* TestGlobals::GetCurrentMessageLoop() {
+ return NULL;
+}
+
+bool TestGlobals::IsHostGlobals() const {
+ // Pretend to be the host-side, for code that expects one or the other.
+ // TODO(dmichael): just make it settable which one we're pretending to be?
+ return true;
+}
+
} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/test_globals.h ('k') | ppapi/shared_impl/tracked_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698