#include "chrome/browser/ui/webui/segmentation_internals/segmentation_internals_page_handler_impl.h"
#include "base/functional/bind.h"
#include "chrome/browser/segmentation_platform/segmentation_platform_service_factory.h"
#include "components/optimization_guide/core/model_util.h"
#include "components/optimization_guide/core/optimization_guide_util.h"
#include "components/segmentation_platform/public/segmentation_platform_service.h"
SegmentId;
SegmentationInternalsPageHandlerImpl::SegmentationInternalsPageHandlerImpl(
mojo::PendingReceiver<segmentation_internals::mojom::PageHandler> receiver,
mojo::PendingRemote<segmentation_internals::mojom::Page> page,
segmentation_platform::SegmentationPlatformService* segmentation_service)
: … { … }
SegmentationInternalsPageHandlerImpl::~SegmentationInternalsPageHandlerImpl() { … }
void SegmentationInternalsPageHandlerImpl::GetServiceStatus() { … }
void SegmentationInternalsPageHandlerImpl::ExecuteModel(int segment_id) { … }
void SegmentationInternalsPageHandlerImpl::OverwriteResult(int segment_id,
float result) { … }
void SegmentationInternalsPageHandlerImpl::SetSelected(
const std::string& segmentation_key,
int segment_id) { … }
void SegmentationInternalsPageHandlerImpl::OnServiceStatusChanged(
bool is_initialized,
int status_flag) { … }
void SegmentationInternalsPageHandlerImpl::OnClientInfoAvailable(
const std::vector<segmentation_platform::ServiceProxy::ClientInfo>&
client_info) { … }