#include "chrome/browser/favicon/large_icon_service_factory.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/image_fetcher/image_decoder_impl.h"
#include "chrome/browser/profiles/profile.h"
#include "components/favicon/content/large_icon_service_getter.h"
#include "components/favicon/core/favicon_service.h"
#include "components/favicon/core/large_icon_service_impl.h"
#include "components/image_fetcher/core/image_decoder.h"
#include "components/image_fetcher/core/image_fetcher_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "ui/gfx/favicon_size.h"
#if BUILDFLAG(IS_ANDROID)
#include "components/search_engines/search_engine_choice/search_engine_choice_utils.h"
#endif
namespace {
favicon::LargeIconService* GetLargeIconService(
content::BrowserContext* context) { … }
#if BUILDFLAG(IS_ANDROID)
const int kDipForServerRequests = 24;
const int kDipForServerRequestsIfSearchEnginesChoiceScreenFlagEnabled = 32;
const favicon_base::IconType kIconTypeForServerRequests =
favicon_base::IconType::kTouchIcon;
const char kGoogleServerClientParam[] = "chrome";
#else
const int kDipForServerRequests = …;
const favicon_base::IconType kIconTypeForServerRequests = …;
const char kGoogleServerClientParam[] = …;
#endif
}
favicon::LargeIconService* LargeIconServiceFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
LargeIconServiceFactory* LargeIconServiceFactory::GetInstance() { … }
LargeIconServiceFactory::LargeIconServiceFactory()
: … { … }
LargeIconServiceFactory::~LargeIconServiceFactory() = default;
std::unique_ptr<KeyedService>
LargeIconServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
int LargeIconServiceFactory::desired_size_in_dip_for_server_requests() { … }
bool LargeIconServiceFactory::ServiceIsNULLWhileTesting() const { … }