chromium/components/segmentation_platform/internal/config_parser.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;

}  // namespace

std::unique_ptr<Config> ParseConfigFromString(const std::string& config_str) {}

base::flat_set<proto::SegmentId> GetAllSegmentIdsFromConfigs(
    const std::vector<std::unique_ptr<Config>>& configs) {}

}  // namespace segmentation_platform