#ifndef EXTENSIONS_SHELL_BROWSER_API_RUNTIME_SHELL_RUNTIME_API_DELEGATE_H_
#define EXTENSIONS_SHELL_BROWSER_API_RUNTIME_SHELL_RUNTIME_API_DELEGATE_H_
#include "base/memory/raw_ptr.h"
#include "extensions/browser/api/runtime/runtime_api_delegate.h"
#include "extensions/common/extension_id.h"
namespace content {
class BrowserContext;
}
namespace extensions {
class ShellRuntimeAPIDelegate : public RuntimeAPIDelegate {
public:
explicit ShellRuntimeAPIDelegate(content::BrowserContext* browser_context);
ShellRuntimeAPIDelegate(const ShellRuntimeAPIDelegate&) = delete;
ShellRuntimeAPIDelegate& operator=(const ShellRuntimeAPIDelegate&) = delete;
~ShellRuntimeAPIDelegate() override;
void AddUpdateObserver(UpdateObserver* observer) override;
void RemoveUpdateObserver(UpdateObserver* observer) override;
void ReloadExtension(const ExtensionId& extension_id) override;
bool CheckForUpdates(const ExtensionId& extension_id,
UpdateCheckCallback callback) override;
void OpenURL(const GURL& uninstall_url) override;
bool GetPlatformInfo(api::runtime::PlatformInfo* info) override;
bool RestartDevice(std::string* error_message) override;
private:
raw_ptr<content::BrowserContext> browser_context_;
};
}
#endif