#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/segmentation_internals/segmentation_internals_ui.h"
#include "base/feature_list.h"
#include "base/logging.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/segmentation_platform/segmentation_platform_service_factory.h"
#include "chrome/browser/ui/webui/segmentation_internals/segmentation_internals_page_handler_impl.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/segmentation_internals_resources.h"
#include "chrome/grit/segmentation_internals_resources_map.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_data_source.h"
namespace {
BASE_FEATURE(…);
}
SegmentationInternalsUI::SegmentationInternalsUI(content::WebUI* web_ui)
: … { … }
SegmentationInternalsUI::~SegmentationInternalsUI() = default;
void SegmentationInternalsUI::BindInterface(
mojo::PendingReceiver<segmentation_internals::mojom::PageHandlerFactory>
receiver) { … }
void SegmentationInternalsUI::CreatePageHandler(
mojo::PendingRemote<segmentation_internals::mojom::Page> page,
mojo::PendingReceiver<segmentation_internals::mojom::PageHandler>
receiver) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(SegmentationInternalsUI)