#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade_factory.h"
#include "base/memory/ptr_util.h"
#include "base/no_destructor.h"
#include "base/run_loop.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade.h"
#include "chrome/browser/profiles/profile.h"
#include "components/performance_manager/performance_manager_impl.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_factory.h"
#include "components/performance_manager/public/performance_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
namespace performance_manager {
namespace {
bool g_enable_for_testing = …;
}
SiteDataCacheFacadeFactory* SiteDataCacheFacadeFactory::GetInstance() { … }
std::unique_ptr<base::AutoReset<bool>>
SiteDataCacheFacadeFactory::EnableForTesting() { … }
void SiteDataCacheFacadeFactory::DisassociateForTesting(Profile* profile) { … }
SiteDataCacheFacade* SiteDataCacheFacadeFactory::GetProfileFacadeForTesting(
Profile* profile) { … }
SiteDataCacheFacadeFactory::SiteDataCacheFacadeFactory()
: … { … }
SiteDataCacheFacadeFactory::~SiteDataCacheFacadeFactory() = default;
std::unique_ptr<KeyedService>
SiteDataCacheFacadeFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
bool SiteDataCacheFacadeFactory::ServiceIsCreatedWithBrowserContext() const { … }
bool SiteDataCacheFacadeFactory::ServiceIsNULLWhileTesting() const { … }
void SiteDataCacheFacadeFactory::OnBeforeFacadeCreated(
base::PassKey<SiteDataCacheFacade>) { … }
void SiteDataCacheFacadeFactory::OnFacadeDestroyed(
base::PassKey<SiteDataCacheFacade>) { … }
}