Chromium Code Reviews| Index: base/message_loop.cc |
| diff --git a/base/message_loop.cc b/base/message_loop.cc |
| index f272a8329a1f8843df6b81fc17b19766fe8e02a1..6691d6b74031e32c7e2c56aa9f905be0f529b67f 100644 |
| --- a/base/message_loop.cc |
| +++ b/base/message_loop.cc |
| @@ -272,6 +272,13 @@ void MessageLoop::PostDelayedTask( |
| AddToIncomingQueue(&pending_task); |
| } |
| +void MessageLoop::PostDelayedTask( |
| + const tracked_objects::Location& from_here, |
| + Task* task, |
| + base::TimeDelta delay) { |
| + PostDelayedTask(from_here, task, delay.InMillisecondsRoundedUp()); |
| +} |
| + |
| void MessageLoop::PostNonNestableTask( |
| const tracked_objects::Location& from_here, Task* task) { |
| DCHECK(task); |
| @@ -296,6 +303,13 @@ void MessageLoop::PostNonNestableDelayedTask( |
| AddToIncomingQueue(&pending_task); |
| } |
| +void MessageLoop::PostNonNestableDelayedTask( |
| + const tracked_objects::Location& from_here, |
| + Task* task, |
| + base::TimeDelta delay) { |
| + PostNonNestableDelayedTask(from_here, task, delay.InMillisecondsRoundedUp()); |
| +} |
| + |
| void MessageLoop::PostTask( |
| const tracked_objects::Location& from_here, const base::Closure& task) { |
| DCHECK(!task.is_null()) << from_here.ToString(); |
| @@ -312,6 +326,12 @@ void MessageLoop::PostDelayedTask( |
| AddToIncomingQueue(&pending_task); |
| } |
| +void MessageLoop::PostDelayedTask( |
| + const tracked_objects::Location& from_here, const base::Closure& task, |
|
brettw
2011/12/28 20:10:27
The closure should be on the next line.
|
| + base::TimeDelta delay) { |
| + PostDelayedTask(from_here, task, delay.InMillisecondsRoundedUp()); |
| +} |
| + |
| void MessageLoop::PostNonNestableTask( |
| const tracked_objects::Location& from_here, const base::Closure& task) { |
| DCHECK(!task.is_null()) << from_here.ToString(); |
| @@ -328,6 +348,13 @@ void MessageLoop::PostNonNestableDelayedTask( |
| AddToIncomingQueue(&pending_task); |
| } |
| +void MessageLoop::PostNonNestableDelayedTask( |
| + const tracked_objects::Location& from_here, |
| + const base::Closure& task, |
| + base::TimeDelta delay) { |
| + PostNonNestableDelayedTask(from_here, task, delay.InMillisecondsRoundedUp()); |
| +} |
| + |
| void MessageLoop::Run() { |
| AutoRunState save_state(this); |
| RunHandler(); |