#include "net/nqe/network_qualities_prefs_manager.h"
#include <optional>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_macros_local.h"
#include "base/rand_util.h"
#include "base/task/sequenced_task_runner.h"
#include "net/nqe/network_quality_estimator.h"
namespace net {
namespace {
constexpr size_t kMaxCacheSize = …;
ParsedPrefs ConvertDictionaryValueToMap(const base::Value::Dict& value) { … }
}
NetworkQualitiesPrefsManager::NetworkQualitiesPrefsManager(
std::unique_ptr<PrefDelegate> pref_delegate)
: … { … }
NetworkQualitiesPrefsManager::~NetworkQualitiesPrefsManager() { … }
void NetworkQualitiesPrefsManager::InitializeOnNetworkThread(
NetworkQualityEstimator* network_quality_estimator) { … }
void NetworkQualitiesPrefsManager::ShutdownOnPrefSequence() { … }
void NetworkQualitiesPrefsManager::ClearPrefs() { … }
void NetworkQualitiesPrefsManager::OnChangeInCachedNetworkQuality(
const nqe::internal::NetworkID& network_id,
const nqe::internal::CachedNetworkQuality& cached_network_quality) { … }
ParsedPrefs NetworkQualitiesPrefsManager::ForceReadPrefsForTesting() const { … }
}