#include "components/segmentation_platform/internal/config_parser.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "components/segmentation_platform/public/config.h"
namespace segmentation_platform {
namespace {
constexpr char kSegmentationKey[] = …;
constexpr char kSegmentationUmaName[] = …;
constexpr char kSegmentIds[] = …;
constexpr char kSegmentUmaName[] = …;
constexpr char kSegmentSelectionTTL[] = …;
constexpr char kUnknownSegmentSelectionTTL[] = …;
}
std::unique_ptr<Config> ParseConfigFromString(const std::string& config_str) { … }
base::flat_set<proto::SegmentId> GetAllSegmentIdsFromConfigs(
const std::vector<std::unique_ptr<Config>>& configs) { … }
}