#include "components/segmentation_platform/internal/database_client_impl.h"
#include "components/segmentation_platform/internal/execution/processing/feature_list_query_processor.h"
#include "components/segmentation_platform/internal/scheduler/execution_service.h"
#include "components/segmentation_platform/internal/ukm_data_manager.h"
#include "components/segmentation_platform/public/database_client.h"
#include "services/metrics/public/mojom/ukm_interface.mojom.h"
namespace segmentation_platform {
namespace {
constexpr SegmentId kSegmentId = …;
void FeatureCallbackWrapper(DatabaseClient::FeaturesCallback callback,
bool error,
const ModelProvider::Request& inputs,
const ModelProvider::Response&) { … }
}
DatabaseClientImpl::DatabaseClientImpl(ExecutionService* execution_service,
UkmDataManager* data_manager)
: … { … }
DatabaseClientImpl::~DatabaseClientImpl() = default;
void DatabaseClientImpl::ProcessFeatures(
const proto::SegmentationModelMetadata& metadata,
base::Time end_time,
FeaturesCallback callback) { … }
void DatabaseClientImpl::AddEvent(const StructuredEvent& event) { … }
}