{% from 'templates/macros.tmpl' import license, source_files_for_generated_file %} {{license()}} {{source_files_for_generated_file(template_file, input_files)}} #ifndef {{header_guard}} #define {{header_guard}} #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/platform/wtf/text/atomic_string.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" #include "third_party/blink/renderer/platform/wtf/vector.h" #define ASSERT_ORIGIN_TRIAL(feature) \ static_assert(std::is_same(), \ #feature " must be part of an origin trial"); namespace blink { class ExecutionContext; // A namespace with dynamic tests for experimental features which can be // enabled by the origin trials framework via origin trial tokens. namespace origin_trials { {% for feature in features %} {% if feature.origin_trial_feature_name %} CORE_EXPORT extern const char k{{feature.name}}TrialName[]; {% endif %} {% endfor %} {% for feature in features %} {% if feature.origin_trial_feature_name %} CORE_EXPORT bool {{feature.name}}Enabled(const ExecutionContext*); {% endif %} {% endfor %} CORE_EXPORT Vector GetImpliedTrials(const String& trial_name); } // namespace origin_trials } // namespace blink #endif // {{header_guard}}