| Index: base/task_runner.cc
|
| diff --git a/base/task_runner.cc b/base/task_runner.cc
|
| index 262e1f8b09eac8d9f91b4113ddeccc27a33323ad..52ac0bb5ee2364d09ba360fdec463a9474b613b9 100644
|
| --- a/base/task_runner.cc
|
| +++ b/base/task_runner.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/logging.h"
|
| #include "base/threading/post_task_and_reply_impl.h"
|
| +#include "base/time/time.h"
|
|
|
| namespace base {
|
|
|
| @@ -22,6 +23,8 @@ class PostTaskAndReplyTaskRunner : public internal::PostTaskAndReplyImpl {
|
| private:
|
| bool PostTask(const tracked_objects::Location& from_here,
|
| const Closure& task) override;
|
| + bool PostDelayedTask(const tracked_objects::Location& from_here,
|
| + const Closure& task, const TimeDelta& delay) override;
|
|
|
| // Non-owning.
|
| TaskRunner* destination_;
|
| @@ -38,11 +41,18 @@ bool PostTaskAndReplyTaskRunner::PostTask(
|
| return destination_->PostTask(from_here, task);
|
| }
|
|
|
| +bool PostTaskAndReplyTaskRunner::PostDelayedTask(
|
| + const tracked_objects::Location& from_here,
|
| + const Closure& task,
|
| + const TimeDelta& delay) {
|
| + return destination_->PostDelayedTask(from_here, task, delay);
|
| +}
|
| +
|
| } // namespace
|
|
|
| bool TaskRunner::PostTask(const tracked_objects::Location& from_here,
|
| const Closure& task) {
|
| - return PostDelayedTask(from_here, task, base::TimeDelta());
|
| + return PostDelayedTask(from_here, task, TimeDelta());
|
| }
|
|
|
| bool TaskRunner::PostTaskAndReply(
|
| @@ -53,6 +63,15 @@ bool TaskRunner::PostTaskAndReply(
|
| from_here, task, reply);
|
| }
|
|
|
| +bool TaskRunner::PostDelayedTaskAndReply(
|
| + const tracked_objects::Location& from_here,
|
| + const Closure& task,
|
| + const Closure& reply,
|
| + const TimeDelta& delay) {
|
| + return PostTaskAndReplyTaskRunner(this).PostDelayedTaskAndReply(
|
| + from_here, task, reply, delay);
|
| +}
|
| +
|
| TaskRunner::TaskRunner() {}
|
|
|
| TaskRunner::~TaskRunner() {}
|
|
|