Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: chrome/browser/net/dns_master.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/dns_master.h
===================================================================
--- chrome/browser/net/dns_master.h (revision 3954)
+++ chrome/browser/net/dns_master.h (working copy)
@@ -39,7 +39,7 @@
// The number of slave processes that will do DNS prefetching
static const int kSlaveCountMax = 8;
- explicit DnsMaster(TimeDelta shutdown_wait_time);
+ explicit DnsMaster(base::TimeDelta shutdown_wait_time);
~DnsMaster() {
if (!shutdown_)
@@ -82,14 +82,14 @@
// Accessor methods, used mostly for testing.
// Both functions return DnsHostInfo::kNullDuration if name was not yet
// processed enough.
- TimeDelta GetResolutionDuration(const std::string hostname) {
+ base::TimeDelta GetResolutionDuration(const std::string hostname) {
AutoLock auto_lock(lock_);
if (results_.find(hostname) == results_.end())
return DnsHostInfo::kNullDuration;
return results_[hostname].resolve_duration();
}
- TimeDelta GetQueueDuration(const std::string hostname) {
+ base::TimeDelta GetQueueDuration(const std::string hostname) {
AutoLock auto_lock(lock_);
if (results_.find(hostname) == results_.end())
return DnsHostInfo::kNullDuration;
@@ -157,7 +157,7 @@
// The following is the maximum time the ShutdownSlaves method
// will wait for all the slave processes to terminate.
- const TimeDelta kShutdownWaitTime_;
+ const base::TimeDelta kShutdownWaitTime_;
// A list of successful events resulting from pre-fetching.
DnsHostInfo::DnsInfoTable cache_hits_;

Powered by Google App Engine
This is Rietveld 408576698