#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/hats/hats_ui.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/hats_resources.h"
#include "chrome/grit/hats_resources_map.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
HatsUIConfig::HatsUIConfig()
: … { … }
bool HatsUIConfig::IsWebUIEnabled(content::BrowserContext* browser_context) { … }
HatsUI::HatsUI(content::WebUI* web_ui) : … { … }
HatsUI::~HatsUI() = default;
void HatsUI::SetHatsPageHandlerDelegate(HatsPageHandlerDelegate* delegate) { … }
void HatsUI::BindInterface(
mojo::PendingReceiver<hats::mojom::PageHandlerFactory> receiver) { … }
void HatsUI::CreatePageHandler(
mojo::PendingRemote<hats::mojom::Page> page,
mojo::PendingReceiver<hats::mojom::PageHandler> receiver) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(HatsUI)