#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_TRIALS_ORIGIN_TRIALS_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_TRIALS_ORIGIN_TRIALS_H_
#include <string_view>
#include "base/containers/span.h"
#include "third_party/blink/public/common/common_export.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-forward.h"
namespace blink {
enum class OriginTrialType { … };
namespace origin_trials {
BLINK_COMMON_EXPORT bool IsTrialValid(std::string_view trial_name);
BLINK_COMMON_EXPORT bool IsTrialEnabledForInsecureContext(
std::string_view trial_name);
BLINK_COMMON_EXPORT bool IsTrialEnabledForThirdPartyOrigins(
std::string_view trial_name);
BLINK_COMMON_EXPORT bool IsTrialEnabledForBrowserProcessReadAccess(
std::string_view trial_name);
BLINK_COMMON_EXPORT bool IsTrialPersistentToNextResponse(
std::string_view trial_name);
BLINK_COMMON_EXPORT bool IsDeprecationTrial(std::string_view trial_name);
BLINK_COMMON_EXPORT OriginTrialType
GetTrialType(blink::mojom::OriginTrialFeature feature);
BLINK_COMMON_EXPORT base::span<const blink::mojom::OriginTrialFeature>
FeaturesForTrial(std::string_view trial_name);
BLINK_COMMON_EXPORT base::span<const blink::mojom::OriginTrialFeature>
GetImpliedFeatures(blink::mojom::OriginTrialFeature feature);
BLINK_COMMON_EXPORT bool FeatureEnabledForOS(
blink::mojom::OriginTrialFeature feature);
BLINK_COMMON_EXPORT bool FeatureEnabledForNavigation(
blink::mojom::OriginTrialFeature feature);
BLINK_COMMON_EXPORT bool FeatureHasExpiryGracePeriod(
blink::mojom::OriginTrialFeature feature);
}
}
#endif