Chromium Code Reviews| Index: content/child/child_thread_impl.h |
| diff --git a/content/child/child_thread_impl.h b/content/child/child_thread_impl.h |
| index 94bd0ba3a76112276d26426d75975b9ee733f7b6..728346e9d07e5e6c43cba52ebf07652353c99bf0 100644 |
| --- a/content/child/child_thread_impl.h |
| +++ b/content/child/child_thread_impl.h |
| @@ -182,6 +182,10 @@ class CONTENT_EXPORT ChildThreadImpl |
| base::MessageLoop* message_loop() const { return message_loop_; } |
| + base::SingleThreadTaskRunner* main_task_runner() const { |
|
kinuko
2016/08/09 14:12:18
main_thread_->main_task_runner() looks slightly cr
|
| + return main_task_runner_.get(); |
| + } |
| + |
| // Returns the one child thread. Can only be called on the main thread. |
| static ChildThreadImpl* current(); |
| @@ -272,6 +276,8 @@ class CONTENT_EXPORT ChildThreadImpl |
| base::MessageLoop* message_loop_; |
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| + |
| std::unique_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| std::unique_ptr<QuotaDispatcher> quota_dispatcher_; |