diff options
Diffstat (limited to 'mojo/shell/task_runners.h')
-rw-r--r-- | mojo/shell/task_runners.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mojo/shell/task_runners.h b/mojo/shell/task_runners.h index 7311cad..a6b59b4 100644 --- a/mojo/shell/task_runners.h +++ b/mojo/shell/task_runners.h @@ -5,10 +5,16 @@ #ifndef MOJO_SHELL_TASK_RUNNERS_H_ #define MOJO_SHELL_TASK_RUNNERS_H_ +#include "base/macros.h" +#include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop/message_loop_proxy.h" #include "base/threading/thread.h" +namespace base { +class SequencedWorkerPool; +} + namespace mojo { namespace shell { @@ -34,6 +40,10 @@ class TaskRunners { return cache_thread_->message_loop_proxy(); } + base::SequencedWorkerPool* blocking_pool() const { + return blocking_pool_.get(); + } + private: // TODO(beng): should this be named shell_runner_? scoped_refptr<base::SingleThreadTaskRunner> ui_runner_; @@ -41,6 +51,8 @@ class TaskRunners { scoped_ptr<base::Thread> io_thread_; scoped_ptr<base::Thread> file_thread_; + scoped_refptr<base::SequencedWorkerPool> blocking_pool_; + DISALLOW_COPY_AND_ASSIGN(TaskRunners); }; |