OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file defines all the public base::FeatureList features for the content | 5 // This file defines all the public base::FeatureList features for the content |
6 // module. | 6 // module. |
7 | 7 |
8 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 8 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
9 #define CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 9 #define CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; | 64 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; |
65 CONTENT_EXPORT extern const base::Feature | 65 CONTENT_EXPORT extern const base::Feature |
66 kRequireSecureOriginsForPepperMediaRequests; | 66 kRequireSecureOriginsForPepperMediaRequests; |
67 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; | 67 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; |
68 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; | 68 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; |
69 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; | 69 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; |
70 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; | 70 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; |
71 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; | 71 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; |
72 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; | 72 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; |
73 CONTENT_EXPORT extern const base::Feature kTokenBinding; | 73 CONTENT_EXPORT extern const base::Feature kTokenBinding; |
74 | |
74 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; | 75 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; |
76 | |
77 CONTENT_EXPORT extern const char kTopDocumentIsolationModeParam[]; | |
78 | |
79 // If TopDocumentIsolation is enabled, the mode for selecting *which* frames to | |
Charlie Reis
2017/07/06 20:02:29
nit: Let's be a bit more specific:
If the kTopDocu
Łukasz Anforowicz
2017/07/06 20:41:58
Done. I've also tweaked the comments for kTopDocu
| |
80 // isolate can be one of the enum values below. | |
81 enum class TopDocumentIsolationMode { | |
82 // Corresponds to "Enabled" state in chrome://flags (i.e. the user didn't | |
83 // select a more specific isolation mode). | |
84 Default = 0, | |
Charlie Reis
2017/07/06 20:02:29
Are there any constraints on this name? I'm wonde
Łukasz Anforowicz
2017/07/06 20:41:58
No constraints. I've renamed to Unspecified.
| |
85 | |
86 // Each of the modes below corresponds to "Enabled (<name> - <description>)" | |
87 // state in chrome://flags. | |
88 #define FOR_EACH_TDI_MODE(V) \ | |
89 V(CrossSite, 1, \ | |
90 "isolate all frames from sites other than the top-level frame") \ | |
91 V(Ads, 2, "isolate ads detected by heuristics") | |
Charlie Reis
2017/07/06 20:02:29
nit: "isolate only cross-site ads detected by heur
Łukasz Anforowicz
2017/07/06 20:41:58
Done.
| |
92 | |
93 #define DEFINE_TDI_MODE_ENUM_VALUE(name, value, description) name = value, | |
94 FOR_EACH_TDI_MODE(DEFINE_TDI_MODE_ENUM_VALUE) | |
95 #undef DEFINE_TDI_MODE_ENUM_VALUE | |
96 }; | |
97 | |
75 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; | 98 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; |
76 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; | 99 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; |
77 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; | 100 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; |
78 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; | 101 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; |
79 CONTENT_EXPORT extern const base::Feature kVrShell; | 102 CONTENT_EXPORT extern const base::Feature kVrShell; |
80 CONTENT_EXPORT extern const base::Feature kWebAssembly; | 103 CONTENT_EXPORT extern const base::Feature kWebAssembly; |
81 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; | 104 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; |
82 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; | 105 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; |
83 CONTENT_EXPORT extern const base::Feature kWebAuth; | 106 CONTENT_EXPORT extern const base::Feature kWebAuth; |
84 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; | 107 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; |
(...skipping 23 matching lines...) Expand all Loading... | |
108 #if defined(OS_MACOSX) | 131 #if defined(OS_MACOSX) |
109 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; | 132 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; |
110 #endif // defined(OS_MACOSX) | 133 #endif // defined(OS_MACOSX) |
111 | 134 |
112 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 135 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
113 // alphabetical order, or in one of the ifdefs (also in order in each section). | 136 // alphabetical order, or in one of the ifdefs (also in order in each section). |
114 | 137 |
115 } // namespace features | 138 } // namespace features |
116 | 139 |
117 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 140 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
OLD | NEW |