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

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

Issue 2194973002: Fix linker warning in broadcast_channel.mojom-blink.obj. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tighten deps Created 4 years, 4 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 RuntimeEnabledFeatures_h 4 #ifndef RuntimeEnabledFeatures_h
5 #define RuntimeEnabledFeatures_h 5 #define RuntimeEnabledFeatures_h
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "platform/PlatformExport.h" 9 #include "platform/RuntimeEnabledFeaturesExport.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
11 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
12 #include "wtf/build_config.h" 12 #include "wtf/build_config.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // A class that stores static enablers for all experimental features. 16 // A class that stores static enablers for all experimental features.
17 17
18 class PLATFORM_EXPORT RuntimeEnabledFeatures { 18 class RUNTIME_ENABLED_FEATURES_EXPORT RuntimeEnabledFeatures {
19 STATIC_ONLY(RuntimeEnabledFeatures); 19 STATIC_ONLY(RuntimeEnabledFeatures);
20 public: 20 public:
21 class PLATFORM_EXPORT Backup { 21 class RUNTIME_ENABLED_FEATURES_EXPORT Backup {
22 public: 22 public:
23 explicit Backup(); 23 explicit Backup();
24 void restore(); 24 void restore();
25 25
26 private: 26 private:
27 {% for feature in standard_features %} 27 {% for feature in standard_features %}
28 bool m_{{feature.first_lowered_name}}; 28 bool m_{{feature.first_lowered_name}};
29 {% endfor %} 29 {% endfor %}
30 }; 30 };
31 31
(...skipping 24 matching lines...) Expand all
56 56
57 private: 57 private:
58 {% for feature in standard_features %} 58 {% for feature in standard_features %}
59 static bool is{{feature.name}}Enabled; 59 static bool is{{feature.name}}Enabled;
60 {% endfor %} 60 {% endfor %}
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // RuntimeEnabledFeatures_h 65 #endif // RuntimeEnabledFeatures_h
OLDNEW
« no previous file with comments | « content/renderer/webpublicsuffixlist_impl.cc ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698