Lines Matching refs:policy_
18 : policy_(policy) { in BackoffEntry()
19 DCHECK(policy_); in BackoffEntry()
46 if (policy_->always_use_initial_delay) in InformOfRequest()
47 delay = base::TimeDelta::FromMilliseconds(policy_->initial_delay_ms); in InformOfRequest()
73 if (policy_->entry_lifetime_ms == -1) in CanDiscard()
88 return unused_since_ms >= std::max(policy_->maximum_backoff_ms, in CanDiscard()
89 policy_->entry_lifetime_ms); in CanDiscard()
94 return unused_since_ms >= policy_->entry_lifetime_ms; in CanDiscard()
114 std::max(0, failure_count_ - policy_->num_errors_to_ignore); in CalculateReleaseTime()
118 if (policy_->always_use_initial_delay) in CalculateReleaseTime()
134 double delay_ms = policy_->initial_delay_ms; in CalculateReleaseTime()
135 delay_ms *= pow(policy_->multiply_factor, effective_failure_count - 1); in CalculateReleaseTime()
136 delay_ms -= base::RandDouble() * policy_->jitter_factor * delay_ms; in CalculateReleaseTime()
148 if (policy_->maximum_backoff_ms >= 0) { in CalculateReleaseTime()
149 maximum_release_time_us = policy_->maximum_backoff_ms; in CalculateReleaseTime()