summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 21:55:17 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 21:55:17 +0000
commitee73678e5a629620179e30dbea0db263d07c38a1 (patch)
tree180bf57d36bdb33c6ce4f724f750e9d4064ceaa8 /base/message_loop.h
parent1f9431546f1bafcbe8d5e0127ab8861413487174 (diff)
downloadchromium_src-ee73678e5a629620179e30dbea0db263d07c38a1.zip
chromium_src-ee73678e5a629620179e30dbea0db263d07c38a1.tar.gz
chromium_src-ee73678e5a629620179e30dbea0db263d07c38a1.tar.bz2
A new (private) interface is supplied that allows the object watcher (coding in
proress by Darin) to Post the task (when the object is signaled) into a message loop. I also cleaned up the time-of-birth for tasks that sleep for a while before running (such as those held by the timer, or by passed to this new PostSignaledTask() interface. r=darin M base/tracked.cc M base/message_loop.h M base/message_loop.cc M base/tracked.h git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index 1610d07..d67c08e 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -543,6 +543,10 @@ class MessageLoop {
// Do a PostMessage(), and crash if we can't eventually do the post.
void EnsureMessageGetsPosted(int message) const;
+ // Post a task that an object watcher has already initialized with the
+ // place of birth.
+ void PostSignaledTask(Task* task);
+
// Post a task to our incomming queue.
void MessageLoop::PostTaskInternal(Task* task);