summaryrefslogtreecommitdiffstats
path: root/chrome/browser/url_fetcher_protect.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 /chrome/browser/url_fetcher_protect.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 'chrome/browser/url_fetcher_protect.h')
-rw-r--r--chrome/browser/url_fetcher_protect.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/url_fetcher_protect.h b/chrome/browser/url_fetcher_protect.h
index 6e4080d..794418b 100644
--- a/chrome/browser/url_fetcher_protect.h
+++ b/chrome/browser/url_fetcher_protect.h
@@ -64,13 +64,13 @@ class URLFetcherProtectEntry {
private:
// When a request comes, calculate the release time for it.
// Returns the backoff time before sending.
- TimeDelta AntiOverload();
+ base::TimeDelta AntiOverload();
// Resets backoff when service is ok.
// Returns the backoff time before sending.
- TimeDelta ResetBackoff();
+ base::TimeDelta ResetBackoff();
// Calculates new backoff when encountering a failure.
// Returns the backoff time before sending.
- TimeDelta IncreaseBackoff();
+ base::TimeDelta IncreaseBackoff();
// Default parameters. Time is in milliseconds.
static const int kDefaultSlidingWindowPeriod;
@@ -101,14 +101,14 @@ class URLFetcherProtectEntry {
// current exponential backoff period
int timeout_period_;
// time that protection is scheduled to end
- TimeTicks release_time_;
+ base::TimeTicks release_time_;
// Sets up a lock to ensure thread safe.
Lock lock_;
// A list of the recent send events. We ues them to decide whether
// there are too many requests sent in sliding window.
- std::queue<TimeTicks> send_log_;
+ std::queue<base::TimeTicks> send_log_;
DISALLOW_COPY_AND_ASSIGN(URLFetcherProtectEntry);
};