summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 18:48:07 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 18:48:07 +0000
commit5be517218a74dc9e291fb2821e2af9f01fb47e10 (patch)
treea0c4ff49da17d8121a9796523e1da7faa9e2f7c3 /base/message_loop.h
parentb4a718ef7d860ccea49e05fa2959790259c8f712 (diff)
downloadchromium_src-5be517218a74dc9e291fb2821e2af9f01fb47e10.zip
chromium_src-5be517218a74dc9e291fb2821e2af9f01fb47e10.tar.gz
chromium_src-5be517218a74dc9e291fb2821e2af9f01fb47e10.tar.bz2
Make timer.cc portable by factoring its Windows bits into MessageLoop.
Please note that the goal of this CL is merely to move the Windowisms out of timer.cc and into message_loop.cc. Next up will be to refactor message_loop.cc so that the Windowisms are further isolated. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index 85535b4..81c1e52 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -365,6 +365,8 @@ class MessageLoop {
//----------------------------------------------------------------------------
private:
+ friend class TimerManager; // So it can call DidChangeNextTimerExpiry
+
struct ScopedStateSave {
explicit ScopedStateSave(MessageLoop* loop)
: loop_(loop),
@@ -573,6 +575,9 @@ class MessageLoop {
// Post a task to our incomming queue.
void PostTaskInternal(Task* task);
+ // Called by the TimerManager when its next timer changes.
+ void DidChangeNextTimerExpiry();
+
// Start recording histogram info about events and action IF it was enabled
// and IF the statistics recorder can accept a registration of our histogram.
void StartHistogrammer();