From 1a2bfdd793e88a64f78b38d23303550cfd0703eb Mon Sep 17 00:00:00 2001 From: "darin@google.com" Date: Wed, 20 Aug 2008 00:25:57 +0000 Subject: Eliminate TimerManager::GetCurrentDelay in favor of always referring to the fire time of the next timer. I changed the MessagePump API to refer to a delayed_work_time instead of a delay. I moved the ceil-based rounding code into the Window's implementations of WaitableEvent and MessagePump. R=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1075 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_default.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/message_pump_default.h') diff --git a/base/message_pump_default.h b/base/message_pump_default.h index 1c1af71..7c65013 100644 --- a/base/message_pump_default.h +++ b/base/message_pump_default.h @@ -44,7 +44,7 @@ class MessagePumpDefault : public MessagePump { virtual void Run(Delegate* delegate); virtual void Quit(); virtual void ScheduleWork(); - virtual void ScheduleDelayedWork(const TimeDelta& delay); + virtual void ScheduleDelayedWork(const Time& delayed_work_time); private: // This flag is set to false when Run should return. @@ -53,6 +53,9 @@ class MessagePumpDefault : public MessagePump { // Used to sleep until there is more work to do. WaitableEvent event_; + // The time at which we should call DoDelayedWork. + Time delayed_work_time_; + DISALLOW_COPY_AND_ASSIGN(MessagePumpDefault); }; -- cgit v1.1