summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 23:40:48 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 23:40:48 +0000
commit02468668f05673052602812d9a9b1846f97bfad3 (patch)
treea0b1596402ece05bb7a23d6053c6543ec6b30438 /base/message_loop.h
parent88424e6e8ed416c21e92bc8efc4b2658f89b7329 (diff)
downloadchromium_src-02468668f05673052602812d9a9b1846f97bfad3.zip
chromium_src-02468668f05673052602812d9a9b1846f97bfad3.tar.gz
chromium_src-02468668f05673052602812d9a9b1846f97bfad3.tar.bz2
Added task to Observer methods
By adding the task to the observer methods and GetBirthPlace() to Tracked it makes it possible to register an observer that can print more information about the tasks as they are being processed. BUG=NONE TEST=MessageLoopTest.* Review URL: http://codereview.chromium.org/4081003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index f4b1a4d..b182ace 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -75,10 +75,10 @@ class MessageLoop : public base::MessagePump::Delegate {
TaskObserver();
// This method is called before processing a task.
- virtual void WillProcessTask(base::TimeTicks birth_time) = 0;
+ virtual void WillProcessTask(const Task* task) = 0;
// This method is called after processing a task.
- virtual void DidProcessTask() = 0;
+ virtual void DidProcessTask(const Task* task) = 0;
protected:
virtual ~TaskObserver();