| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/shell/task_runners.h" | 5 #include "shell/task_runners.h" |
| 6 | 6 |
| 7 #include "base/threading/sequenced_worker_pool.h" | 7 #include "base/threading/sequenced_worker_pool.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace shell { | 10 namespace shell { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 const size_t kMaxBlockingPoolThreads = 3; | 14 const size_t kMaxBlockingPoolThreads = 3; |
| 15 | 15 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 blocking_pool_(new base::SequencedWorkerPool(kMaxBlockingPoolThreads, | 30 blocking_pool_(new base::SequencedWorkerPool(kMaxBlockingPoolThreads, |
| 31 "blocking_pool")) { | 31 "blocking_pool")) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 TaskRunners::~TaskRunners() { | 34 TaskRunners::~TaskRunners() { |
| 35 blocking_pool_->Shutdown(); | 35 blocking_pool_->Shutdown(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace shell | 38 } // namespace shell |
| 39 } // namespace mojo | 39 } // namespace mojo |
| OLD | NEW |