#include "components/favicon/core/favicon_driver_impl.h"
#include <memory>
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "components/favicon/core/core_favicon_service.h"
#include "components/favicon/core/favicon_driver_observer.h"
#include "components/favicon/core/favicon_handler.h"
#include "components/favicon/core/favicon_url.h"
namespace favicon {
namespace {
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS)
const bool kEnableTouchIcon = true;
#else
const bool kEnableTouchIcon = …;
#endif
}
FaviconDriverImpl::FaviconDriverImpl(CoreFaviconService* favicon_service)
: … { … }
FaviconDriverImpl::~FaviconDriverImpl() = default;
void FaviconDriverImpl::FetchFavicon(const GURL& page_url,
bool is_same_document) { … }
bool FaviconDriverImpl::HasPendingTasksForTest() { … }
void FaviconDriverImpl::SetFaviconOutOfDateForPage(const GURL& url,
bool force_reload) { … }
void FaviconDriverImpl::OnUpdateCandidates(
const GURL& page_url,
const std::vector<FaviconURL>& candidates,
const GURL& manifest_url) { … }
}