Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #ifndef ExperimentalFeatures_h 4 #ifndef OriginTrials_h
5 #define ExperimentalFeatures_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 class that stores dynamic tests for experimental features which can be 14 // A class that stores dynamic tests for experimental features which can be
15 // enabled through the experimental framework via API keys. 15 // enabled through the experimental framework via API keys.
16 16
17 class CORE_EXPORT ExperimentalFeatures { 17 class CORE_EXPORT OriginTrials {
18 public: 18 public:
19 {% for feature in features %} 19 {% for feature in features %}
20 {% if feature.api_name %} 20 {% if feature.origin_trial_feature_name %}
21 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio nContext, String& errorMessage); 21 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio nContext, String& errorMessage);
22 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio nContext); 22 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio nContext);
23 {% endif %} 23 {% endif %}
24 {% endfor %} 24 {% endfor %}
25 25
26 private: 26 private:
27 ExperimentalFeatures() { } 27 OriginTrials() { }
28 28
29 {% for feature in features %} 29 {% for feature in features %}
30 {% if feature.api_name %} 30 {% if feature.origin_trial_feature_name %}
31 static bool {{feature.first_lowered_name}}EnabledImpl(ExecutionContext* exec utionContext, String* errorMessage); 31 static bool {{feature.first_lowered_name}}EnabledImpl(ExecutionContext* exec utionContext, String* errorMessage);
32 {% endif %} 32 {% endif %}
33 {% endfor %} 33 {% endfor %}
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // ExperimentalFeatures_h 38 #endif // OriginTrials_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698