| OLD | NEW |
| 1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
| 2 {{license()}} | 2 {{license()}} |
| 3 | 3 |
| 4 #ifndef OriginTrials_h | 4 #ifndef OriginTrials_h |
| 5 #define OriginTrials_h | 5 #define OriginTrials_h |
| 6 | 6 |
| 7 #include "core/CoreExport.h" | 7 #include "core/CoreExport.h" |
| 8 #include "wtf/text/StringHash.h" | |
| 9 #include "wtf/text/WTFString.h" | 8 #include "wtf/text/WTFString.h" |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 class ExecutionContext; | 12 class ExecutionContext; |
| 14 | 13 |
| 15 // A namespace with dynamic tests for experimental features which can be enabled
through the | 14 // A namespace with dynamic tests for experimental features which can be enabled
through the |
| 16 // experimental framework via origin trial tokens. | 15 // experimental framework via origin trial tokens. |
| 17 namespace OriginTrials { | 16 namespace OriginTrials { |
| 18 {% for feature in features %} | 17 {% for feature in features %} |
| 19 {% if feature.origin_trial_feature_name %} | 18 {% if feature.origin_trial_feature_name %} |
| 20 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*, St
ring& errorMessage); | 19 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*, St
ring& errorMessage); |
| 21 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*); | 20 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*); |
| 22 {% endif %} | 21 {% endif %} |
| 23 {% endfor %} | 22 {% endfor %} |
| 24 } // namespace OriginTrials | 23 } // namespace OriginTrials |
| 25 | 24 |
| 26 } // namespace blink | 25 } // namespace blink |
| 27 | 26 |
| 28 #endif // OriginTrials_h | 27 #endif // OriginTrials_h |
| OLD | NEW |