Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; | 65 CONTENT_EXPORT extern const base::Feature kRenderingPipelineThrottling; |
| 66 CONTENT_EXPORT extern const base::Feature | 66 CONTENT_EXPORT extern const base::Feature |
| 67 kRequireSecureOriginsForPepperMediaRequests; | 67 kRequireSecureOriginsForPepperMediaRequests; |
| 68 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; | 68 CONTENT_EXPORT extern const base::Feature kScrollAnchoring; |
| 69 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; | 69 CONTENT_EXPORT extern const base::Feature kServiceWorkerNavigationPreload; |
| 70 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; | 70 CONTENT_EXPORT extern const base::Feature kSharedArrayBuffer; |
| 71 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; | 71 CONTENT_EXPORT extern const base::Feature kSkipCompositingSmallScrollers; |
| 72 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; | 72 CONTENT_EXPORT extern const base::Feature kSlimmingPaintInvalidation; |
| 73 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; | 73 CONTENT_EXPORT extern const base::Feature kTimerThrottlingForHiddenFrames; |
| 74 CONTENT_EXPORT extern const base::Feature kTokenBinding; | 74 CONTENT_EXPORT extern const base::Feature kTokenBinding; |
| 75 | |
| 75 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; | 76 CONTENT_EXPORT extern const base::Feature kTopDocumentIsolation; |
| 77 | |
| 78 CONTENT_EXPORT extern const char kTopDocumentIsolationModeParam[]; | |
| 79 | |
| 80 // If TopDocumentIsolation is enabled, the mode for selecting *which* frames to | |
| 81 // isolate can be one of the enum values below. | |
| 82 enum class TopDocumentIsolationMode { | |
| 83 // Corresponds to "Enabled" state in chrome://flags (i.e. the user didn't | |
| 84 // select a more specific isolation mode). | |
| 85 Default = 0, | |
| 86 | |
| 87 // Each of the modes below corresponds to "Enabled (<name> - <description>)" | |
| 88 // state in chrome://flags. | |
| 89 #define FOR_EACH_TDI_MODE(V) \ | |
| 90 V(CrossSite, 1, \ | |
| 91 "isolate all frames from sites other than the top-level frame") \ | |
| 92 V(Ads, 2, "isolate ads detected by heuristics") | |
| 93 | |
| 94 #define DEFINE_TDI_MODE_ENUM_VALUE(name, value, description) name = value, | |
| 95 FOR_EACH_TDI_MODE(DEFINE_TDI_MODE_ENUM_VALUE) | |
| 96 #undef DEFINE_TDI_MODE_ENUM_VALUE | |
| 97 }; | |
| 98 | |
|
Łukasz Anforowicz
2017/07/01 00:10:53
Charlie - do you have any thoughts on the location
| |
| 76 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; | 99 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; |
| 77 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; | 100 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; |
| 78 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; | 101 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; |
| 79 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; | 102 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; |
| 80 CONTENT_EXPORT extern const base::Feature kVrShell; | 103 CONTENT_EXPORT extern const base::Feature kVrShell; |
| 81 CONTENT_EXPORT extern const base::Feature kWebAssembly; | 104 CONTENT_EXPORT extern const base::Feature kWebAssembly; |
| 82 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; | 105 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; |
| 83 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; | 106 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; |
| 84 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; | 107 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; |
| 85 CONTENT_EXPORT extern const base::Feature kWebPayments; | 108 CONTENT_EXPORT extern const base::Feature kWebPayments; |
| (...skipping 22 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 |