1 // Copyright 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.
5 #include "mojo/shell/task_runners.h"
7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/threading/thread.h"
13 TaskRunners::TaskRunners(base::SingleThreadTaskRunner* ui_runner)
14 : ui_runner_(ui_runner),
15 io_thread_(new base::Thread("io_thread")),
16 file_thread_(new base::Thread("file_thread")) {
17 base::Thread::Options options;
18 options.message_loop_type = base::MessageLoop::TYPE_IO;
19 io_thread_->StartWithOptions(options);
20 file_thread_->Start();
23 TaskRunners::~TaskRunners() {