#include "chrome/browser/profiles/profile_statistics_aggregator.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/time/time.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browsing_data/counters/signin_data_counter.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/password_manager/profile_password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_statistics.h"
#include "chrome/browser/profiles/profile_statistics_factory.h"
#include "chrome/browser/webauthn/chrome_authenticator_request_delegate.h"
#include "chrome/browser/webdata_services/web_data_service_factory.h"
#include "components/browsing_data/core/counters/autofill_counter.h"
#include "components/browsing_data/core/counters/bookmark_counter.h"
#include "components/browsing_data/core/counters/history_counter.h"
#include "components/browsing_data/core/pref_names.h"
#include "content/public/browser/browser_thread.h"
#if BUILDFLAG(IS_MAC)
#include "device/fido/mac/credential_store.h"
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "device/fido/cros/credential_store.h"
#endif
BrowsingDataCounter;
ProfileStatisticsAggregator::ProfileStatisticsAggregator(
Profile* profile,
base::OnceClosure done_callback)
: … { … }
ProfileStatisticsAggregator::~ProfileStatisticsAggregator() { … }
void ProfileStatisticsAggregator::AddCallbackAndStartAggregator(
profiles::ProfileStatisticsCallback stats_callback) { … }
void ProfileStatisticsAggregator::AddCounter(
std::unique_ptr<BrowsingDataCounter> counter) { … }
void ProfileStatisticsAggregator::StartAggregator() { … }
void ProfileStatisticsAggregator::OnCounterResult(
std::unique_ptr<BrowsingDataCounter::Result> result) { … }
void ProfileStatisticsAggregator::StatisticsCallback(const char* category,
int count) { … }