chromium/chrome/browser/favicon/large_icon_service_factory.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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)
// Seems like on Android `1 dip == 1 px`.
const int kDipForServerRequests = 24;
// Matches the size used on iOS, see `kDipForServerRequests` in
// `//ios/c/b/favicon/model/ios_chrome_large_icon_service_factory.cc`.
// TODO(b/318824817): Replace the constant above when cleaning up the flag.
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

}  // namespace

// static
favicon::LargeIconService* LargeIconServiceFactory::GetForBrowserContext(
    content::BrowserContext* context) {}

// static
LargeIconServiceFactory* LargeIconServiceFactory::GetInstance() {}

LargeIconServiceFactory::LargeIconServiceFactory()
    :{}

LargeIconServiceFactory::~LargeIconServiceFactory() = default;

std::unique_ptr<KeyedService>
LargeIconServiceFactory::BuildServiceInstanceForBrowserContext(
    content::BrowserContext* context) const {}

// static
int LargeIconServiceFactory::desired_size_in_dip_for_server_requests() {}

bool LargeIconServiceFactory::ServiceIsNULLWhileTesting() const {}