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

Unified Diff: base/threading/post_task_and_reply_impl.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_runner.cc ('k') | base/threading/post_task_and_reply_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/post_task_and_reply_impl.h
diff --git a/base/threading/post_task_and_reply_impl.h b/base/threading/post_task_and_reply_impl.h
index 076a46d69e86619be6f585f7854072ef6a5e0ae8..c53a9ee9d639b957710169e9d9a87178adc6900e 100644
--- a/base/threading/post_task_and_reply_impl.h
+++ b/base/threading/post_task_and_reply_impl.h
@@ -10,6 +10,7 @@
#include "base/callback_forward.h"
#include "base/location.h"
+#include "base/time/time.h"
namespace base {
namespace internal {
@@ -31,9 +32,18 @@ class PostTaskAndReplyImpl {
const Closure& task,
const Closure& reply);
+ // Implementation for MessageLoopProxy::PostDelayedTaskAndReply.
+ bool PostDelayedTaskAndReply(const tracked_objects::Location& from_here,
+ const Closure& task,
+ const Closure& reply,
+ const TimeDelta& delay);
+
private:
virtual bool PostTask(const tracked_objects::Location& from_here,
const Closure& task) = 0;
+ virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
+ const Closure& task,
+ const TimeDelta& delay) = 0;
};
} // namespace internal
« no previous file with comments | « base/task_runner.cc ('k') | base/threading/post_task_and_reply_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698