#include "components/segmentation_platform/internal/data_collection/training_data_cache.h"
#include "base/rand_util.h"
#include "base/time/time.h"
namespace segmentation_platform {
TrainingData;
TrainingDataCache::TrainingDataCache(SegmentInfoDatabase* segment_info_database)
: … { … }
TrainingDataCache::~TrainingDataCache() = default;
void TrainingDataCache::StoreInputs(SegmentId segment_id,
ModelSource model_source,
const TrainingData& data,
bool save_to_db) { … }
void TrainingDataCache::GetInputsAndDelete(SegmentId segment_id,
ModelSource model_source,
TrainingRequestId request_id,
TrainingDataCallback callback) { … }
std::optional<TrainingRequestId> TrainingDataCache::GetRequestId(
SegmentId segment_id,
ModelSource model_source) { … }
TrainingRequestId TrainingDataCache::GenerateNextId() { … }
}