diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 01:13:40 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 01:13:40 +0000 |
commit | 3816f46725f7b8e42e352a063efd5206a46dbe9a (patch) | |
tree | d64edfcf741dcd927ce404f66dab723e8a0914c8 /base/message_pump.h | |
parent | bda05798c0609582075a3b872c37ad56021920c4 (diff) | |
download | chromium_src-3816f46725f7b8e42e352a063efd5206a46dbe9a.zip chromium_src-3816f46725f7b8e42e352a063efd5206a46dbe9a.tar.gz chromium_src-3816f46725f7b8e42e352a063efd5206a46dbe9a.tar.bz2 |
rollback r1075 to see if it helps resolve test failures
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump.h')
-rw-r--r-- | base/message_pump.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/base/message_pump.h b/base/message_pump.h index 06cef43..a06a435 100644 --- a/base/message_pump.h +++ b/base/message_pump.h @@ -32,7 +32,7 @@ #include "base/ref_counted.h" -class Time; +class TimeDelta; namespace base { @@ -52,12 +52,11 @@ class MessagePump : public RefCountedThreadSafe<MessagePump> { // Called from within Run in response to ScheduleDelayedWork or when the // message pump would otherwise sleep waiting for more work. Returns true // to indicate that delayed work was done. DoIdleWork will not be called - // if DoDelayedWork returns true. Upon return |next_delayed_work_time| - // indicates the time when DoDelayedWork should be called again. If - // |next_delayed_work_time| is null (per Time::is_null), then the queue of - // future delayed work (timer events) is currently empty, and no additional - // calls to this function need to be scheduled. - virtual bool DoDelayedWork(Time* next_delayed_work_time) = 0; + // if DoDelayedWork returns true. Upon return |next_delay| indicates the + // next delayed work interval. If |next_delay| is negative, then the queue + // of future delayed work (timer events) is currently empty, and no + // additional calls to this function need to be scheduled. + virtual bool DoDelayedWork(TimeDelta* next_delay) = 0; // Called from within Run just before the message pump goes to sleep. // Returns true to indicate that idle work was done. @@ -138,10 +137,10 @@ class MessagePump : public RefCountedThreadSafe<MessagePump> { // until it returns a value of false. virtual void ScheduleWork() = 0; - // Schedule a DoDelayedWork callback to happen at the specified time, + // Schedule a DoDelayedWork callback to happen after the specified delay, // cancelling any pending DoDelayedWork callback. This method may only be // used on the thread that called Run. - virtual void ScheduleDelayedWork(const Time& delayed_work_time) = 0; + virtual void ScheduleDelayedWork(const TimeDelta& delay) = 0; }; } // namespace base |