summaryrefslogtreecommitdiffstats
path: root/base/tracked.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/tracked.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/tracked.h')
-rw-r--r--base/tracked.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/tracked.h b/base/tracked.h
index 7af05ff..b4f6e36 100644
--- a/base/tracked.h
+++ b/base/tracked.h
@@ -94,6 +94,7 @@ class Tracked {
// Used to record the FROM_HERE location of a caller.
void SetBirthPlace(const Location& from_here);
+ const Location GetBirthPlace() const;
// When a task sits around a long time, such as in a timer, or object watcher,
// this method should be called when the task becomes active, and its