#include "extensions/browser/extension_action_manager.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/extension_action.h"
#include "extensions/browser/extension_icon_image.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/common/constants.h"
#include "ui/gfx/image/image_skia.h"
namespace extensions {
namespace {
class ExtensionActionManagerFactory : public BrowserContextKeyedServiceFactory { … };
ExtensionActionManagerFactory* ExtensionActionManagerFactory::GetInstance() { … }
}
ExtensionActionManager::ExtensionActionManager(
content::BrowserContext* browser_context)
: … { … }
ExtensionActionManager::~ExtensionActionManager() { … }
ExtensionActionManager* ExtensionActionManager::Get(
content::BrowserContext* context) { … }
void ExtensionActionManager::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionReason reason) { … }
ExtensionAction* ExtensionActionManager::GetExtensionAction(
const Extension& extension) const { … }
void ExtensionActionManager::EnsureFactoryBuilt() { … }
}