Index: base/threading/sequenced_worker_pool.cc |
diff --git a/base/threading/sequenced_worker_pool.cc b/base/threading/sequenced_worker_pool.cc |
index 7679c1532eabf440285006ab951d9c5df4f66198..48bb2eb9858fbd1e9b55886c1ef1040619010dc0 100644 |
--- a/base/threading/sequenced_worker_pool.cc |
+++ b/base/threading/sequenced_worker_pool.cc |
@@ -689,6 +689,31 @@ bool SequencedWorkerPool::PostSequencedWorkerTaskWithShutdownBehavior( |
from_here, task); |
} |
+bool SequencedWorkerPool::PostDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const Closure& task, |
+ int64 delay_ms) { |
+ // TODO(akalin): Add support for non-zero delays. |
+ DCHECK_EQ(delay_ms, 0); |
+ return PostWorkerTask(from_here, task); |
+} |
+ |
+bool SequencedWorkerPool::PostDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const Closure& task, |
+ TimeDelta delay) { |
+ // TODO(akalin): Add support for non-zero delays. |
+ DCHECK_EQ(delay.InMillisecondsRoundedUp(), 0); |
+ return PostWorkerTask(from_here, task); |
+} |
+ |
+bool SequencedWorkerPool::RunsTasksOnCurrentThread() const { |
+ // TODO(akalin): Keep track of the thread IDs of our worker threads |
+ // and use those to implement this function. |
+ NOTREACHED(); |
+ return true; |
+} |
+ |
void SequencedWorkerPool::FlushForTesting() { |
inner_->FlushForTesting(); |
} |