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/WTFString.h" | 8 #include "wtf/text/WTFString.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class ExecutionContext; | 12 class ExecutionContext; |
13 | 13 |
14 // 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 |
15 // experimental framework via origin trial tokens. | 15 // experimental framework via origin trial tokens. |
16 namespace OriginTrials { | 16 namespace OriginTrials { |
17 {% for feature in features %} | 17 {% for feature in features %} |
18 {% if feature.origin_trial_feature_name %} | 18 {% if feature.origin_trial_feature_name %} |
19 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*, St
ring& errorMessage); | |
20 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*); | 19 CORE_EXPORT bool {{feature.first_lowered_name}}Enabled(ExecutionContext*); |
21 {% endif %} | 20 {% endif %} |
22 {% endfor %} | 21 {% endfor %} |
23 } // namespace OriginTrials | 22 } // namespace OriginTrials |
24 | 23 |
25 } // namespace blink | 24 } // namespace blink |
26 | 25 |
27 #endif // OriginTrials_h | 26 #endif // OriginTrials_h |
OLD | NEW |