#include "chrome/browser/ui/webui/discards/site_data_provider_impl.h"
#include "base/functional/callback_helpers.h"
#include "base/sequence_checker.h"
#include "components/performance_manager/persistence/site_data/site_data.pb.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_factory.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_inspector.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/public/graph/page_node.h"
#include "components/performance_manager/public/persistence/site_data/site_data_reader.h"
#include "url/gurl.h"
namespace {
discards::mojom::SiteDataFeaturePtr ConvertFeatureFromProto(
const SiteDataFeatureProto& proto) { … }
discards::mojom::SiteDataEntryPtr ConvertEntryFromProto(SiteDataProto* proto) { … }
}
SiteDataProviderImpl::SiteDataProviderImpl(const std::string& profile_id)
: … { … }
SiteDataProviderImpl::~SiteDataProviderImpl() = default;
void SiteDataProviderImpl::CreateAndBind(
mojo::PendingReceiver<discards::mojom::SiteDataProvider> receiver,
const std::string& profile_id_,
performance_manager::Graph* graph) { … }
void SiteDataProviderImpl::GetSiteDataArray(
const std::vector<std::string>& explicitly_requested_origins,
GetSiteDataArrayCallback callback) { … }
void SiteDataProviderImpl::GetSiteDataDatabaseSize(
GetSiteDataDatabaseSizeCallback callback) { … }
void SiteDataProviderImpl::OnConnectionError(SiteDataProviderImpl* impl) { … }
void SiteDataProviderImpl::Bind(
mojo::PendingReceiver<discards::mojom::SiteDataProvider> receiver) { … }