#ifndef IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_H_
#define IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_H_
#include <string>
#include <string_view>
#import "base/memory/raw_ptr.h"
class GURL;
namespace web {
class WebUIIOS;
class WebUIIOSController {
public:
WebUIIOSController(WebUIIOS* web_ui, const std::string& host)
: web_ui_(web_ui), host_(host) {}
virtual ~WebUIIOSController() {}
virtual bool OverrideHandleWebUIIOSMessage(const GURL& source_url,
std::string_view message);
WebUIIOS* web_ui() const { return web_ui_; }
std::string GetHost() const { return host_; }
private:
raw_ptr<WebUIIOS> web_ui_;
std::string host_;
};
}
#endif