#include "chrome/browser/apps/platform_apps/app_load_service.h"
#include "apps/app_restore_service.h"
#include "apps/launcher.h"
#include "base/notreached.h"
#include "chrome/browser/apps/platform_apps/app_load_service_factory.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/unpacked_installer.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/app_window/app_window_registry.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
Extension;
ExtensionPrefs;
ExtensionSystem;
namespace apps {
AppLoadService::PostReloadAction::PostReloadAction()
: … { … }
AppLoadService::AppLoadService(content::BrowserContext* context)
: … { … }
AppLoadService::~AppLoadService() = default;
void AppLoadService::Shutdown() { … }
void AppLoadService::RestartApplication(const std::string& extension_id) { … }
void AppLoadService::RestartApplicationIfRunning(
const std::string& extension_id) { … }
bool AppLoadService::LoadAndLaunch(const base::FilePath& extension_path,
const base::CommandLine& command_line,
const base::FilePath& current_dir) { … }
bool AppLoadService::Load(const base::FilePath& extension_path) { … }
AppLoadService* AppLoadService::Get(content::BrowserContext* context) { … }
void AppLoadService::OnExtensionHostCompletedFirstLoad(
content::BrowserContext* browser_context,
extensions::ExtensionHost* host) { … }
void AppLoadService::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
extensions::UnloadedExtensionReason reason) { … }
bool AppLoadService::WasUnloadedForReload(
const extensions::ExtensionId& extension_id,
const extensions::UnloadedExtensionReason reason) { … }
bool AppLoadService::HasPostReloadAction(const std::string& extension_id) { … }
}