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

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: 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') | base/task/cancelable_task_tracker.cc » ('J')
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..1f89cd807b5c785708d5c8e83c0d0443dfe46929 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,
+ TimeDelta delay);
tzik 2015/04/01 06:17:53 s/TimeDelta/const TimeDelta&/g ?
Takashi Toyoshima 2015/04/01 06:51:32 Done.
+
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,
+ 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') | base/task/cancelable_task_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698