Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Unified Diff: base/task_runner.h

Issue 1048373003: CancelableTaskTracker::PostDelayedTask() support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary base:: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task/cancelable_task_tracker_unittest.cc ('k') | base/task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_runner.h
diff --git a/base/task_runner.h b/base/task_runner.h
index 7d07b8ceb028ae3a06842b6823e320e70a70997e..a447798a4423c0ef6e99e0487efee95a7c79a49b 100644
--- a/base/task_runner.h
+++ b/base/task_runner.h
@@ -73,7 +73,7 @@ class BASE_EXPORT TaskRunner
// to have PostDelayedTask behave the same as PostTask.
virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
const Closure& task,
- base::TimeDelta delay) = 0;
+ TimeDelta delay) = 0;
// Returns true if the current thread is a thread on which a task
// may be run, and false if no task will be run on the current
@@ -128,6 +128,11 @@ class BASE_EXPORT TaskRunner
const Closure& task,
const Closure& reply);
+ bool PostDelayedTaskAndReply(const tracked_objects::Location& from_here,
+ const Closure& task,
+ const Closure& reply,
+ const TimeDelta& delay);
+
protected:
friend struct TaskRunnerTraits;
« no previous file with comments | « base/task/cancelable_task_tracker_unittest.cc ('k') | base/task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698