Index: content/common/child_thread.cc |
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc |
index fedd88ecbd7564ac9b684448b36a1b20284d1f3f..d76b925a6f377645304aa2810ab91285ed0c8c2f 100644 |
--- a/content/common/child_thread.cc |
+++ b/content/common/child_thread.cc |
@@ -17,6 +17,7 @@ |
#include "content/common/quota_dispatcher.h" |
#include "content/common/resource_dispatcher.h" |
#include "content/common/socket_stream_dispatcher.h" |
+#include "content/common/worker_task_runner.h" |
#include "content/public/common/content_switches.h" |
#include "ipc/ipc_logging.h" |
#include "ipc/ipc_sync_channel.h" |
@@ -60,6 +61,8 @@ void ChildThread::Init() { |
new IPC::SyncMessageFilter(ChildProcess::current()->GetShutDownEvent()); |
channel_->AddFilter(sync_message_filter_.get()); |
channel_->AddFilter(new ChildTraceMessageFilter()); |
+ |
+ worker_task_runner_ = new WorkerTaskRunner; |
} |
ChildThread::~ChildThread() { |
@@ -270,3 +273,7 @@ void ChildThread::OnProcessFinalRelease() { |
// The browser then sends back a response if it's ok to shutdown. |
Send(new ChildProcessHostMsg_ShutdownRequest); |
} |
+ |
+WorkerTaskRunner* ChildThread::worker_task_runner() const { |
+ return worker_task_runner_.get(); |
+} |