#include "net/base/backoff_entry.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include "base/check_op.h"
#include "base/numerics/clamped_math.h"
#include "base/numerics/safe_math.h"
#include "base/rand_util.h"
#include "base/time/tick_clock.h"
namespace net {
BackoffEntry::BackoffEntry(const BackoffEntry::Policy* policy)
: … { … }
BackoffEntry::BackoffEntry(const BackoffEntry::Policy* policy,
const base::TickClock* clock)
: … { … }
BackoffEntry::~BackoffEntry() { … }
void BackoffEntry::InformOfRequest(bool succeeded) { … }
bool BackoffEntry::ShouldRejectRequest() const { … }
base::TimeDelta BackoffEntry::GetTimeUntilRelease() const { … }
base::TimeTicks BackoffEntry::GetReleaseTime() const { … }
void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { … }
bool BackoffEntry::CanDiscard() const { … }
void BackoffEntry::Reset() { … }
base::TimeTicks BackoffEntry::GetTimeTicksNow() const { … }
base::TimeTicks BackoffEntry::CalculateReleaseTime() const { … }
base::TimeTicks BackoffEntry::BackoffDurationToReleaseTime(
base::TimeDelta backoff_duration) const { … }
}