diff options
Diffstat (limited to 'base/message_pump.h')
-rw-r--r-- | base/message_pump.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/message_pump.h b/base/message_pump.h index 8e80fc8..90336df 100644 --- a/base/message_pump.h +++ b/base/message_pump.h @@ -50,8 +50,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. - virtual bool DoDelayedWork() = 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. |