#include "components/affiliations/core/browser/affiliation_prefetcher.h"
#include <algorithm>
#include <optional>
#include <utility>
#include "base/barrier_callback.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "components/affiliations/core/browser/affiliation_service.h"
#include "components/affiliations/core/browser/affiliation_utils.h"
namespace affiliations {
namespace {
FacetURI;
constexpr base::TimeDelta kInitializationDelayOnStartup = …;
}
AffiliationPrefetcher::AffiliationPrefetcher(
AffiliationService* affiliation_service)
: … { … }
AffiliationPrefetcher::~AffiliationPrefetcher() = default;
void AffiliationPrefetcher::RegisterSource(
std::unique_ptr<AffiliationSource> source) { … }
void AffiliationPrefetcher::OnFacetsAdded(std::vector<FacetURI> facets) { … }
void AffiliationPrefetcher::OnFacetsRemoved(std::vector<FacetURI> facets) { … }
void AffiliationPrefetcher::OnResultFromSingleSourceReceived(
std::vector<FacetURI> results) { … }
void AffiliationPrefetcher::OnResultFromAllSourcesReceived(
std::vector<std::vector<FacetURI>> results) { … }
void AffiliationPrefetcher::Initialize() { … }
}