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

Unified Diff: base/message_loop.h

Issue 8965072: Add function support for Sleep and MessageLoop with TimeDelta input. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comment spacing. Created 9 years 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/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index 28ccd4eefa825460b9c3e20b50dc52d0e7c9d49b..18333e26b8b5d23e0c7ddb8bd59a70afc33890e4 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -168,12 +168,22 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
void PostDelayedTask(
const tracked_objects::Location& from_here, Task* task, int64 delay_ms);
+ void PostDelayedTask(
+ const tracked_objects::Location& from_here,
+ Task* task,
+ base::TimeDelta delay);
+
void PostNonNestableTask(
const tracked_objects::Location& from_here, Task* task);
void PostNonNestableDelayedTask(
const tracked_objects::Location& from_here, Task* task, int64 delay_ms);
+ void PostNonNestableDelayedTask(
+ const tracked_objects::Location& from_here,
+ Task* task,
+ base::TimeDelta delay);
+
// TODO(ajwong): Remove the functions above once the Task -> Closure migration
// is complete.
//
@@ -189,6 +199,11 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
const tracked_objects::Location& from_here,
const base::Closure& task, int64 delay_ms);
+ void PostDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay);
+
void PostNonNestableTask(
const tracked_objects::Location& from_here,
const base::Closure& task);
@@ -197,6 +212,11 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
const tracked_objects::Location& from_here,
const base::Closure& task, int64 delay_ms);
+ void PostNonNestableDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay);
+
// A variant on PostTask that deletes the given object. This is useful
// if the object needs to live until the next run of the MessageLoop (for
// example, deleting a RenderProcessHost from within an IPC callback is not
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698