chromium/out/Default/gen/third_party/blink/common/origin_trials/origin_trials.cc

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

// Generated from template:
//   templates/origin_trials.cc.tmpl
// and input files:
//   ../../third_party/blink/renderer/platform/runtime_enabled_features.json5


#include "third_party/blink/public/common/origin_trials/origin_trials.h"

#include <array>
#include <iterator>
#include <string_view>

#include "base/containers/contains.h"
#include "base/ranges/algorithm.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "build/chromeos_buildflags.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"

// For testing. See OriginTrialsSampleAPIInvalidOS.
#define BUILDFLAG_INTERNAL_IS_INVALID()

namespace blink {

namespace {

static constexpr size_t kMaxFeaturesPerTrial =;
static constexpr struct TrialToFeature {} kTrialToFeaturesMap[] =;

} // namespace

bool origin_trials::IsTrialValid(std::string_view trial_name) {}

bool origin_trials::IsTrialEnabledForInsecureContext(std::string_view trial_name) {}

bool origin_trials::IsTrialEnabledForThirdPartyOrigins(std::string_view trial_name) {}

bool origin_trials::IsTrialEnabledForBrowserProcessReadAccess(std::string_view trial_name) {}

bool origin_trials::IsDeprecationTrial(std::string_view trial_name) {}

OriginTrialType origin_trials::GetTrialType(mojom::OriginTrialFeature feature) {}


base::span<const mojom::OriginTrialFeature> origin_trials::FeaturesForTrial(
    std::string_view trial_name) {}

base::span<const mojom::OriginTrialFeature> origin_trials::GetImpliedFeatures(
    mojom::OriginTrialFeature feature) {}

bool origin_trials::FeatureEnabledForOS(mojom::OriginTrialFeature feature) {}

} // namespace blink