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

Unified Diff: chrome/browser/url_fetcher_protect.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/url_fetcher_protect.h
===================================================================
--- chrome/browser/url_fetcher_protect.h (revision 3954)
+++ chrome/browser/url_fetcher_protect.h (working copy)
@@ -64,13 +64,13 @@
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 @@
// 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);
};

Powered by Google App Engine
This is Rietveld 408576698