OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/base/auto_thread_task_runner.h" | 5 #include "remoting/base/auto_thread_task_runner.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace remoting { | 9 namespace remoting { |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 const base::Closure& task, | 29 const base::Closure& task, |
30 base::TimeDelta delay) { | 30 base::TimeDelta delay) { |
31 CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay)); | 31 CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay)); |
32 return true; | 32 return true; |
33 } | 33 } |
34 | 34 |
35 bool AutoThreadTaskRunner::RunsTasksOnCurrentThread() const { | 35 bool AutoThreadTaskRunner::RunsTasksOnCurrentThread() const { |
36 return task_runner_->RunsTasksOnCurrentThread(); | 36 return task_runner_->RunsTasksOnCurrentThread(); |
37 } | 37 } |
38 | 38 |
| 39 std::string AutoThreadTaskRunner::GetThreadName() const { |
| 40 return task_runner_->GetThreadName(); |
| 41 } |
| 42 |
39 AutoThreadTaskRunner::~AutoThreadTaskRunner() { | 43 AutoThreadTaskRunner::~AutoThreadTaskRunner() { |
40 CHECK(task_runner_->PostTask(FROM_HERE, stop_task_)); | 44 CHECK(task_runner_->PostTask(FROM_HERE, stop_task_)); |
41 } | 45 } |
42 | 46 |
43 } // namespace remoting | 47 } // namespace remoting |
OLD | NEW |