summaryrefslogtreecommitdiffstats
path: root/base/tracked.cc
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 17:46:47 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 17:46:47 +0000
commitb49054718ac2c49f629427c41a4ff2a6ba4bdb09 (patch)
tree0611d3d1d64574356dd3705ee66f7309a251bec3 /base/tracked.cc
parent1c15248a5f6ffd48c99bca9d2fbd6d4b375e991c (diff)
downloadchromium_src-b49054718ac2c49f629427c41a4ff2a6ba4bdb09.zip
chromium_src-b49054718ac2c49f629427c41a4ff2a6ba4bdb09.tar.gz
chromium_src-b49054718ac2c49f629427c41a4ff2a6ba4bdb09.tar.bz2
Revise the ObjectWatcher API to be one-to-one with the object being watched. This greatly simplifies the implementation and API.
Now consumers can use ObjectWatcher as a "smart pointer" class, which automatically cleans-up after itself when it goes out of scope. I also switched away from the Task based API to one that is more compatible with MessageLoop::WatchObject. That allows me to make minimal changes to existing code, and it also means that consumers do not have to allocate Task objects to use this API. In this CL, I included changes to make a couple consumers use ObjectWatcher instead of ML::WatchObject. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked.cc')
-rw-r--r--base/tracked.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/tracked.cc b/base/tracked.cc
index 86d634b..b1a2bff 100644
--- a/base/tracked.cc
+++ b/base/tracked.cc
@@ -74,6 +74,7 @@ void Location::WriteFunctionName(std::string* output) const {
Tracked::Tracked() {}
Tracked::~Tracked() {}
void Tracked::SetBirthPlace(const Location& from_here) {}
+void Tracked::ResetBirthTime() {}
bool Tracked::MissingBirthplace() const { return false; }
void Tracked::ResetBirthTime() {}