#ifndef CHROME_BROWSER_FAVICON_FAVICON_SERVICE_FACTORY_H_
#define CHROME_BROWSER_FAVICON_FAVICON_SERVICE_FACTORY_H_
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
#include "components/keyed_service/core/service_access_type.h"
namespace base {
template <typename T>
class NoDestructor;
}
class Profile;
namespace favicon {
class FaviconService;
}
class FaviconServiceFactory : public ProfileKeyedServiceFactory {
public:
static favicon::FaviconService* GetForProfile(Profile* profile,
ServiceAccessType sat);
static FaviconServiceFactory* GetInstance();
FaviconServiceFactory(const FaviconServiceFactory&) = delete;
FaviconServiceFactory& operator=(const FaviconServiceFactory&) = delete;
static TestingFactory GetDefaultFactory();
private:
friend base::NoDestructor<FaviconServiceFactory>;
FaviconServiceFactory();
~FaviconServiceFactory() override;
std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext(
content::BrowserContext* profile) const override;
bool ServiceIsNULLWhileTesting() const override;
};
#endif