#include "components/omnibox/browser/favicon_cache.h"
#include <tuple>
#include "base/containers/lru_cache.h"
#include "base/functional/bind.h"
#include "base/not_fatal_until.h"
#include "components/favicon/core/favicon_service.h"
#include "components/omnibox/browser/autocomplete_result.h"
namespace {
size_t GetFaviconCacheSize() { … }
}
bool FaviconCache::Request::operator<(const Request& rhs) const { … }
FaviconCache::FaviconCache(favicon::FaviconService* favicon_service,
history::HistoryService* history_service)
: … { … }
FaviconCache::~FaviconCache() { … }
gfx::Image FaviconCache::GetFaviconForPageUrl(
const GURL& page_url,
FaviconFetchedCallback on_favicon_fetched) { … }
gfx::Image FaviconCache::GetLargestFaviconForPageUrl(
const GURL& page_url,
FaviconFetchedCallback on_favicon_fetched) { … }
gfx::Image FaviconCache::GetFaviconForIconUrl(
const GURL& icon_url,
FaviconFetchedCallback on_favicon_fetched) { … }
gfx::Image FaviconCache::GetFaviconInternal(
const Request& request,
FaviconFetchedCallback on_favicon_fetched) { … }
void FaviconCache::OnFaviconFetched(
const Request& request,
const favicon_base::FaviconImageResult& result) { … }
void FaviconCache::OnFaviconRawBitmapFetched(
const Request& request,
const favicon_base::FaviconRawBitmapResult& bitmap_result) { … }
void FaviconCache::InvokeRequestCallbackWithFavicon(const Request& request,
const gfx::Image& image) { … }
void FaviconCache::OnURLVisited(history::HistoryService* history_service,
const history::URLRow& url_row,
const history::VisitRow& new_visit) { … }
void FaviconCache::InvalidateCachedRequests(const Request& request) { … }
void FaviconCache::OnHistoryDeletions(
history::HistoryService* history_service,
const history::DeletionInfo& deletion_info) { … }
void FaviconCache::OnFaviconsChanged(const std::set<GURL>& page_urls,
const GURL& icon_url) { … }