#include "chrome/browser/extensions/chrome_app_icon_service.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/not_fatal_until.h"
#include "base/task/single_thread_task_runner.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/chrome_app_icon.h"
#include "chrome/browser/extensions/chrome_app_icon_service_factory.h"
namespace extensions {
ChromeAppIconService* ChromeAppIconService::Get(
content::BrowserContext* context) { … }
ChromeAppIconService::ChromeAppIconService(content::BrowserContext* context)
: … { … }
ChromeAppIconService::~ChromeAppIconService() = default;
void ChromeAppIconService::Shutdown() { … }
std::unique_ptr<ChromeAppIcon> ChromeAppIconService::CreateIcon(
ChromeAppIconDelegate* delegate,
const std::string& app_id,
int resource_size_in_dip,
const ResizeFunction& resize_function) { … }
std::unique_ptr<ChromeAppIcon> ChromeAppIconService::CreateIcon(
ChromeAppIconDelegate* delegate,
const std::string& app_id,
int resource_size_in_dip) { … }
void ChromeAppIconService::OnExtensionLoaded(
content::BrowserContext* browser_context,
const Extension* extension) { … }
void ChromeAppIconService::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionReason reason) { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
void ChromeAppIconService::OnAppUpdated(
content::BrowserContext* browser_context,
const std::string& app_id,
bool reload_icon) {
if (!reload_icon)
return;
OnAppUpdated(app_id);
}
#endif
void ChromeAppIconService::OnAppUpdated(const std::string& app_id) { … }
void ChromeAppIconService::OnIconDestroyed(ChromeAppIcon* icon) { … }
void ChromeAppIconService::MaybeCleanupIconSet(const std::string& app_id) { … }
}