summaryrefslogtreecommitdiffstats
path: root/base/message_pump.h
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-16 03:09:05 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-16 03:09:05 +0000
commitfc7fb6e30c5c3574dfade2803f1793b9110d1370 (patch)
tree0ac30f51beace4b794501ad120f437f9149c65fb /base/message_pump.h
parent3705baeff3bc0c1f63d2376e16c427df18c7564a (diff)
downloadchromium_src-fc7fb6e30c5c3574dfade2803f1793b9110d1370.zip
chromium_src-fc7fb6e30c5c3574dfade2803f1793b9110d1370.tar.gz
chromium_src-fc7fb6e30c5c3574dfade2803f1793b9110d1370.tar.bz2
Take 2 at the new MessageLoop implementation.
R=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump.h')
-rw-r--r--base/message_pump.h7
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.