#include "components/variations/variations_request_scheduler.h"
#include <stddef.h>
#include <optional>
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversions.h"
#include "build/build_config.h"
#include "components/variations/variations_associated_data.h"
#include "components/variations/variations_switches.h"
namespace variations {
namespace {
constexpr base::TimeDelta kVariationsSeedFetchIntervalMinimum = …;
std::optional<base::TimeDelta> GetOverriddenFetchPeriod() { … }
}
VariationsRequestScheduler::VariationsRequestScheduler(
const base::RepeatingClosure& task)
: … { … }
VariationsRequestScheduler::~VariationsRequestScheduler() = default;
void VariationsRequestScheduler::Start() { … }
void VariationsRequestScheduler::Reset() { … }
void VariationsRequestScheduler::ScheduleFetchShortly() { … }
void VariationsRequestScheduler::OnAppEnterForeground() { … }
base::TimeDelta VariationsRequestScheduler::GetFetchPeriod() const { … }
base::RepeatingClosure VariationsRequestScheduler::task() const { … }
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
VariationsRequestScheduler* VariationsRequestScheduler::Create(
const base::RepeatingClosure& task,
PrefService* local_state) { … }
#endif
}