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

Unified Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 2806084: Add SimpleResourceLoaderBridge::GetIoThread(), so it's possible to run tasks ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « webkit/tools/test_shell/simple_resource_loader_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_resource_loader_bridge.cc
===================================================================
--- webkit/tools/test_shell/simple_resource_loader_bridge.cc (revision 53987)
+++ webkit/tools/test_shell/simple_resource_loader_bridge.cc (working copy)
@@ -33,6 +33,7 @@
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
#include "base/file_path.h"
+#include "base/logging.h"
#include "base/message_loop.h"
#if defined(OS_MACOSX) || defined(OS_WIN)
#include "base/nss_util.h"
@@ -825,3 +826,13 @@
SimpleResourceLoaderBridge::GetCacheThread() {
return g_cache_thread->message_loop_proxy();
}
+
+// static
+scoped_refptr<base::MessageLoopProxy>
+ SimpleResourceLoaderBridge::GetIoThread() {
+ if (!EnsureIOThread()) {
+ LOG(DFATAL) << "Failed to create IO thread.";
+ return NULL;
+ }
+ return g_io_thread->message_loop_proxy();
+}
« no previous file with comments | « webkit/tools/test_shell/simple_resource_loader_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698