#include "chrome/browser/preloading/prefetch/prefetch_service/prefetch_origin_decider.h"
#include <memory>
#include <vector>
#include "base/json/values_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/time/time.h"
#include "chrome/browser/prefetch/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
void PrefetchOriginDecider::RegisterPrefs(PrefRegistrySimple* registry) { … }
PrefetchOriginDecider::PrefetchOriginDecider(PrefService* pref_service,
base::Clock* clock)
: … { … }
PrefetchOriginDecider::~PrefetchOriginDecider() = default;
void PrefetchOriginDecider::OnBrowsingDataCleared() { … }
bool PrefetchOriginDecider::IsOriginOutsideRetryAfterWindow(
const GURL& url) const { … }
void PrefetchOriginDecider::ReportOriginRetryAfter(
const GURL& url,
base::TimeDelta retry_after) { … }
void PrefetchOriginDecider::LoadFromPrefs() { … }
void PrefetchOriginDecider::SaveToPrefs() const { … }
bool PrefetchOriginDecider::ClearPastEntries() { … }