#include "chrome/browser/favicon/chrome_favicon_client.h"
#include "base/functional/bind.h"
#include "base/memory/singleton.h"
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
#include "chrome/common/url_constants.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/dom_distiller/core/url_utils.h"
#include "extensions/buildflags/buildflags.h"
#include "url/gurl.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/common/constants.h"
#endif
namespace {
void RunFaviconCallbackIfNotCanceled(
const base::CancelableTaskTracker::IsCanceledCallback& is_canceled_cb,
favicon_base::FaviconResultsCallback original_callback,
const std::vector<favicon_base::FaviconRawBitmapResult>& results) { … }
}
ChromeFaviconClient::ChromeFaviconClient(Profile* profile) : … { … }
ChromeFaviconClient::~ChromeFaviconClient() { … }
bool ChromeFaviconClient::IsNativeApplicationURL(const GURL& url) { … }
bool ChromeFaviconClient::IsReaderModeURL(const GURL& url) { … }
const GURL ChromeFaviconClient::GetOriginalUrlFromReaderModeUrl(
const GURL& url) { … }
base::CancelableTaskTracker::TaskId
ChromeFaviconClient::GetFaviconForNativeApplicationURL(
const GURL& url,
const std::vector<int>& desired_sizes_in_pixel,
favicon_base::FaviconResultsCallback callback,
base::CancelableTaskTracker* tracker) { … }