chromium/components/affiliations/core/browser/affiliation_prefetcher.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// I/O heavy initialization on start-up will be delayed by this long.
// This should be high enough not to exacerbate start-up I/O contention too
// much, but also low enough so important affiliations data is quickly available
// to the user (e.g. log into websites using Android credentials).
constexpr base::TimeDelta kInitializationDelayOnStartup =;
}  // namespace

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() {}

}  // namespace affiliations