summaryrefslogtreecommitdiffstats
path: root/base/watchdog.h
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
commite1acf6f902e50222baf99bfb492ecc38a1604975 (patch)
tree503d45705b14be7e2f1ed86c71d6064abbf90fbe /base/watchdog.h
parenta2f5993e1ce940e8a8eec900abaeed02e2eee09b (diff)
downloadchromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.zip
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.gz
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.bz2
Move Time, TimeDelta and TimeTicks into namespace base.
Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/watchdog.h')
-rw-r--r--base/watchdog.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/watchdog.h b/base/watchdog.h
index 0b77749..c7e967f 100644
--- a/base/watchdog.h
+++ b/base/watchdog.h
@@ -28,15 +28,15 @@ class Watchdog {
public:
// TODO(JAR)change default arg to required arg after all users have migrated.
// Constructor specifies how long the Watchdog will wait before alarming.
- Watchdog(const TimeDelta& duration,
+ Watchdog(const base::TimeDelta& duration,
const std::wstring& thread_watched_name,
bool enabled = true);
virtual ~Watchdog();
// Start timing, and alarm when time expires (unless we're disarm()ed.)
void Arm(); // Arm starting now.
- void ArmSomeTimeDeltaAgo(const TimeDelta& time_delta);
- void ArmAtStartTime(const TimeTicks start_time);
+ void ArmSomeTimeDeltaAgo(const base::TimeDelta& time_delta);
+ void ArmAtStartTime(const base::TimeTicks start_time);
// Reset time, and do not set off the alarm.
void Disarm();
@@ -60,12 +60,12 @@ class Watchdog {
Lock lock_; // Mutex for state_.
ConditionVariable condition_variable_;
State state_;
- const TimeDelta duration_; // How long after start_time_ do we alarm?
+ const base::TimeDelta duration_; // How long after start_time_ do we alarm?
const std::wstring thread_watched_name_;
HANDLE handle_; // Handle for watchdog thread.
DWORD thread_id_; // Also for watchdog thread.
- TimeTicks start_time_; // Start of epoch, and alarm after duration_.
+ base::TimeTicks start_time_; // Start of epoch, and alarm after duration_.
// When the debugger breaks (when we alarm), all the other alarms that are
// armed will expire (also alarm). To diminish this effect, we track any
@@ -75,9 +75,9 @@ class Watchdog {
// on alarms from callers that specify old times.
static Lock static_lock_; // Lock for access of static data...
// When did we last alarm and get stuck (for a while) in a debugger?
- static TimeTicks last_debugged_alarm_time_;
+ static base::TimeTicks last_debugged_alarm_time_;
// How long did we sit on a break in the debugger?
- static TimeDelta last_debugged_alarm_delay_;
+ static base::TimeDelta last_debugged_alarm_delay_;
DISALLOW_EVIL_CONSTRUCTORS(Watchdog);