#include "extensions/shell/browser/api/runtime/shell_runtime_api_delegate.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "extensions/common/api/runtime.h"
#include "extensions/common/extension_id.h"
#include "extensions/shell/browser/shell_extension_system.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chromeos/dbus/power/power_manager_client.h"
#endif
PlatformInfo;
namespace extensions {
ShellRuntimeAPIDelegate::ShellRuntimeAPIDelegate(
content::BrowserContext* browser_context)
: … { … }
ShellRuntimeAPIDelegate::~ShellRuntimeAPIDelegate() = default;
void ShellRuntimeAPIDelegate::AddUpdateObserver(UpdateObserver* observer) { … }
void ShellRuntimeAPIDelegate::RemoveUpdateObserver(UpdateObserver* observer) { … }
void ShellRuntimeAPIDelegate::ReloadExtension(const ExtensionId& extension_id) { … }
bool ShellRuntimeAPIDelegate::CheckForUpdates(const ExtensionId& extension_id,
UpdateCheckCallback callback) { … }
void ShellRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { … }
bool ShellRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { … }
bool ShellRuntimeAPIDelegate::RestartDevice(std::string* error_message) { … }
}