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

Unified Diff: net/base/backoff_entry.h

Issue 2390653002: Allow backoff entry serialization if clock is null. (Closed)
Patch Set: feedback Created 4 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
« no previous file with comments | « no previous file | net/base/backoff_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/backoff_entry.h
diff --git a/net/base/backoff_entry.h b/net/base/backoff_entry.h
index 3efd32cee01468fb470e180db645cea27f58102e..f8543cd7556f709f5bb8441f980e6ffcaf4d8c3c 100644
--- a/net/base/backoff_entry.h
+++ b/net/base/backoff_entry.h
@@ -108,16 +108,13 @@ class NET_EXPORT BackoffEntry : NON_EXPORTED_BASE(public base::NonThreadSafe) {
// Returns the failure count for this entry.
int failure_count() const { return failure_count_; }
- // Returns the TickClock passed in to the constructor. May be NULL.
- base::TickClock* tick_clock() const { return clock_; }
+ // Equivalent to TimeTicks::Now(), using clock_ if provided.
+ base::TimeTicks GetTimeTicksNow() const;
private:
// Calculates when requests should again be allowed through.
base::TimeTicks CalculateReleaseTime() const;
- // Equivalent to TimeTicks::Now(), using clock_ if provided.
- base::TimeTicks GetTimeTicksNow() const;
-
// Timestamp calculated by the exponential back-off algorithm at which we are
// allowed to start sending requests again.
base::TimeTicks exponential_backoff_release_time_;
« no previous file with comments | « no previous file | net/base/backoff_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698