| 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 TimeDelta delay) { | 275 TimeDelta delay) { |
| 276 task_runner_->PostDelayedTask(from_here, task, delay); | 276 task_runner_->PostDelayedTask(from_here, task, delay); |
| 277 } | 277 } |
| 278 | 278 |
| 279 void MessageLoop::PostNonNestableTask( | 279 void MessageLoop::PostNonNestableTask( |
| 280 const tracked_objects::Location& from_here, | 280 const tracked_objects::Location& from_here, |
| 281 const Closure& task) { | 281 const Closure& task) { |
| 282 task_runner_->PostNonNestableTask(from_here, task); | 282 task_runner_->PostNonNestableTask(from_here, task); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void MessageLoop::PostNonNestableDelayedTask( | |
| 286 const tracked_objects::Location& from_here, | |
| 287 const Closure& task, | |
| 288 TimeDelta delay) { | |
| 289 task_runner_->PostNonNestableDelayedTask(from_here, task, delay); | |
| 290 } | |
| 291 | |
| 292 void MessageLoop::Run() { | 285 void MessageLoop::Run() { |
| 293 DCHECK(pump_); | 286 DCHECK(pump_); |
| 294 RunLoop run_loop; | 287 RunLoop run_loop; |
| 295 run_loop.Run(); | 288 run_loop.Run(); |
| 296 } | 289 } |
| 297 | 290 |
| 298 void MessageLoop::RunUntilIdle() { | 291 void MessageLoop::RunUntilIdle() { |
| 299 DCHECK(pump_); | 292 DCHECK(pump_); |
| 300 RunLoop run_loop; | 293 RunLoop run_loop; |
| 301 run_loop.RunUntilIdle(); | 294 run_loop.RunUntilIdle(); |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 persistent, | 741 persistent, |
| 749 mode, | 742 mode, |
| 750 controller, | 743 controller, |
| 751 delegate); | 744 delegate); |
| 752 } | 745 } |
| 753 #endif | 746 #endif |
| 754 | 747 |
| 755 #endif // !defined(OS_NACL_SFI) | 748 #endif // !defined(OS_NACL_SFI) |
| 756 | 749 |
| 757 } // namespace base | 750 } // namespace base |
| OLD | NEW |