Lines Matching refs:policy_
17 : policy_(policy) { in BackoffEntry()
18 DCHECK(policy_); in BackoffEntry()
45 if (policy_->always_use_initial_delay) in InformOfRequest()
46 delay = base::TimeDelta::FromMilliseconds(policy_->initial_delay_ms); in InformOfRequest()
72 if (policy_->entry_lifetime_ms == -1) in CanDiscard()
88 std::max(policy_->maximum_backoff_ms, policy_->entry_lifetime_ms); in CanDiscard()
93 return unused_since_ms >= policy_->entry_lifetime_ms; in CanDiscard()
113 std::max(0, failure_count_ - policy_->num_errors_to_ignore); in CalculateReleaseTime()
117 if (policy_->always_use_initial_delay) in CalculateReleaseTime()
133 double delay_ms = policy_->initial_delay_ms; in CalculateReleaseTime()
134 delay_ms *= pow(policy_->multiply_factor, effective_failure_count - 1); in CalculateReleaseTime()
135 delay_ms -= base::RandDouble() * policy_->jitter_factor * delay_ms; in CalculateReleaseTime()
147 if (policy_->maximum_backoff_ms >= 0) { in CalculateReleaseTime()
148 maximum_release_time_us = policy_->maximum_backoff_ms; in CalculateReleaseTime()