chromium/extensions/common/manifest_handlers/trial_tokens_handler.cc

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

#include "extensions/common/manifest_handlers/trial_tokens_handler.h"

#include <memory>
#include <utility>

#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"

namespace extensions {

namespace {

// The maximum number of tokens which will be processed
// This value should be sufficiently large to avoid any issues in practice,
// but small enough to bound resource consumption to something reasonable
const size_t kMaxTokenCount =;
// The maximum length of a single token
// Keep this value in sync with the value of same name in
// third_party/blink/public/common/origin_trials/trial_token.cc
const size_t kMaxTokenSize =;

const TrialTokens* GetTokens(const Extension& extension) {}

}  // namespace

TrialTokens::TrialTokens(std::set<std::string> tokens)
    :{}

TrialTokens::TrialTokens(TrialTokens&& other) = default;
TrialTokens::~TrialTokens() = default;

// static
const std::set<std::string>* TrialTokens::GetTrialTokens(
    const Extension& extension) {}

// static
bool TrialTokens::HasTrialTokens(const Extension& extension) {}

TrialTokensHandler::TrialTokensHandler() = default;
TrialTokensHandler::~TrialTokensHandler() = default;

bool TrialTokensHandler::Parse(Extension* extension, std::u16string* error) {}

base::span<const char* const> TrialTokensHandler::Keys() const {}

}  // namespace extensions