#include "components/affiliations/core/browser/affiliation_fetch_throttler.h"
#include <stdint.h>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/rand_util.h"
#include "base/task/sequenced_task_runner.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "components/affiliations/core/browser/affiliation_fetch_throttler_delegate.h"
namespace affiliations {
const net::BackoffEntry::Policy AffiliationFetchThrottler::kBackoffPolicy = …;
const int64_t AffiliationFetchThrottler::kGracePeriodAfterReconnectMs = …;
AffiliationFetchThrottler::AffiliationFetchThrottler(
AffiliationFetchThrottlerDelegate* delegate,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
network::NetworkConnectionTracker* network_connection_tracker,
const base::TickClock* tick_clock)
: … { … }
AffiliationFetchThrottler::~AffiliationFetchThrottler() { … }
void AffiliationFetchThrottler::SignalNetworkRequestNeeded() { … }
void AffiliationFetchThrottler::InformOfNetworkRequestComplete(bool success) { … }
bool AffiliationFetchThrottler::HasInternetConnection() const { … }
void AffiliationFetchThrottler::EnsureCallbackIsScheduled() { … }
void AffiliationFetchThrottler::OnBackoffDelayExpiredCallback() { … }
void AffiliationFetchThrottler::OnConnectionChanged(
network::mojom::ConnectionType type) { … }
}