Lines Matching refs:policy_
17 policy_(policy) { in BackoffEntry()
18 DCHECK(policy_); in BackoffEntry()
71 if (policy_->entry_lifetime_ms == -1) in CanDiscard()
86 return unused_since_ms >= std::max(policy_->maximum_backoff_ms, in CanDiscard()
87 policy_->entry_lifetime_ms); in CanDiscard()
92 return unused_since_ms >= policy_->entry_lifetime_ms; in CanDiscard()
101 std::max(0, failure_count_ - policy_->num_errors_to_ignore); in CalculateReleaseTime()
111 double delay = policy_->initial_backoff_ms; in CalculateReleaseTime()
112 delay *= pow(policy_->multiply_factor, effective_failure_count - 1); in CalculateReleaseTime()
113 delay -= base::RandDouble() * policy_->jitter_factor * delay; in CalculateReleaseTime()
118 static_cast<int64>(policy_->maximum_backoff_ms)); in CalculateReleaseTime()