// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SAFE_BROWSING_CORE_BROWSER_UTILS_BACKOFF_OPERATOR_H_ #define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_UTILS_BACKOFF_OPERATOR_H_ #include "base/timer/timer.h" namespace safe_browsing { // This class is responsible for tracking and updating exponential backoff mode. // This should be used for consumers who want to be able to throttle requests // sent in cases where they are consistently failing. This class maintains the // status of the failures and decides when backoff mode should be enabled. class BackoffOperator { … }; } // namespace safe_browsing #endif // COMPONENTS_SAFE_BROWSING_CORE_BROWSER_UTILS_BACKOFF_OPERATOR_H_