#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"
#define BUILDFLAG_INTERNAL_IS_INVALID() …
namespace blink {
namespace {
static constexpr size_t kMaxFeaturesPerTrial = …;
static constexpr struct TrialToFeature { … } kTrialToFeaturesMap[] = …;
}
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) { … }
}