#include "components/safe_browsing/core/browser/utils/backoff_operator.h"
namespace safe_browsing {
BackoffOperator::BackoffOperator(size_t num_failures_to_enforce_backoff,
size_t min_backoff_reset_duration_in_seconds,
size_t max_backoff_reset_duration_in_seconds)
: … { … }
BackoffOperator::~BackoffOperator() = default;
size_t BackoffOperator::GetBackoffDurationInSeconds() const { … }
bool BackoffOperator::ReportError() { … }
void BackoffOperator::ReportSuccess() { … }
bool BackoffOperator::IsInBackoffMode() const { … }
base::TimeDelta BackoffOperator::GetBackoffRemainingDuration() { … }
void BackoffOperator::ResetFailures() { … }
}