OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/message_loop/message_loop_proxy.h" |
| 6 #include "base/threading/thread.h" |
| 7 #include "mojo/shell/task_runners.h" |
| 8 |
| 9 namespace mojo { |
| 10 namespace shell { |
| 11 |
| 12 TaskRunners::TaskRunners(base::SingleThreadTaskRunner* ui_runner) |
| 13 : ui_runner_(ui_runner), |
| 14 io_thread_(new base::Thread("io_thread")) { |
| 15 base::Thread::Options options; |
| 16 options.message_loop_type = base::MessageLoop::TYPE_IO; |
| 17 io_thread_->StartWithOptions(options); |
| 18 } |
| 19 |
| 20 TaskRunners::~TaskRunners() { |
| 21 } |
| 22 |
| 23 } // namespace shell |
| 24 } // namespace mojo |
OLD | NEW |