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

Unified Diff: base/task/cancelable_task_tracker.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 | « no previous file | base/task/cancelable_task_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task/cancelable_task_tracker.h
diff --git a/base/task/cancelable_task_tracker.h b/base/task/cancelable_task_tracker.h
index b8a8b70e333922b41d5e7019070f09e18a6a12e4..093357ccc1cecbc1b347bb062f25c8c24fbba6c1 100644
--- a/base/task/cancelable_task_tracker.h
+++ b/base/task/cancelable_task_tracker.h
@@ -43,6 +43,7 @@
#include "base/memory/weak_ptr.h"
#include "base/task_runner_util.h"
#include "base/threading/thread_checker.h"
+#include "base/time/time.h"
namespace tracked_objects {
class Location;
@@ -70,6 +71,11 @@ class BASE_EXPORT CancelableTaskTracker {
const tracked_objects::Location& from_here,
const base::Closure& task);
+ TaskId PostDelayedTask(base::TaskRunner* task_runner,
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ const TimeDelta& delay);
+
TaskId PostTaskAndReply(base::TaskRunner* task_runner,
const tracked_objects::Location& from_here,
const base::Closure& task,
@@ -124,6 +130,11 @@ class BASE_EXPORT CancelableTaskTracker {
private:
void Track(TaskId id, base::CancellationFlag* flag);
void Untrack(TaskId id);
+ TaskId PostDelayedTaskAndReply(base::TaskRunner* task_runner,
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ const base::Closure& reply,
+ const TimeDelta& delay);
base::hash_map<TaskId, base::CancellationFlag*> task_flags_;
« no previous file with comments | « no previous file | base/task/cancelable_task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698