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 #define FOR_EACH_TDI_MODE(V) \ | |
| 80 V(Xsite, 1, "isolate all frames from sites other than the top-level frame") \ | |
|
Charlie Reis
2017/06/30 23:28:49
We don't really use the term Xsite anywhere in Chr
Łukasz Anforowicz
2017/07/01 00:10:53
Thanks for catching "Xsite". I've changed this to
Charlie Reis
2017/07/06 20:02:29
Oh, I'm fine with the mode description here in the
Łukasz Anforowicz
2017/07/06 20:41:57
Oh, right :-). I've updated the CL description.
| |
| 81 V(Ads, 2, "isolate ads detected by heuristics") | |
| 82 | |
| 83 enum class TopDocumentIsolationMode { | |
| 84 Default = 0, | |
|
Charlie Reis
2017/06/30 23:28:48
Sorry, I'm getting confused about the difference b
Łukasz Anforowicz
2017/07/01 00:10:53
I've added a comment to the code above.
chrome://
| |
| 85 | |
| 86 #define DEFINE_TDI_MODE_ENUM_VALUE(name, value, description) name = value, | |
| 87 FOR_EACH_TDI_MODE(DEFINE_TDI_MODE_ENUM_VALUE) | |
| 88 #undef DEFINE_TDI_MODE_ENUM_VALUE | |
| 89 }; | |
| 90 | |
| 76 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; | 91 CONTENT_EXPORT extern const base::Feature kTouchpadAndWheelScrollLatching; |
| 77 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; | 92 CONTENT_EXPORT extern const base::Feature kUseFeaturePolicyForPermissions; |
| 78 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; | 93 CONTENT_EXPORT extern const base::Feature kUseMojoAudioOutputStreamFactory; |
| 79 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; | 94 CONTENT_EXPORT extern const base::Feature kVibrateRequiresUserGesture; |
| 80 CONTENT_EXPORT extern const base::Feature kVrShell; | 95 CONTENT_EXPORT extern const base::Feature kVrShell; |
| 81 CONTENT_EXPORT extern const base::Feature kWebAssembly; | 96 CONTENT_EXPORT extern const base::Feature kWebAssembly; |
| 82 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; | 97 CONTENT_EXPORT extern const base::Feature kWebAssemblyStreaming; |
| 83 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; | 98 CONTENT_EXPORT extern const base::Feature kWebAssemblyTrapHandler; |
| 84 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; | 99 CONTENT_EXPORT extern const base::Feature kWebGLImageChromium; |
| 85 CONTENT_EXPORT extern const base::Feature kWebPayments; | 100 CONTENT_EXPORT extern const base::Feature kWebPayments; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 108 #if defined(OS_MACOSX) | 123 #if defined(OS_MACOSX) |
| 109 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; | 124 CONTENT_EXPORT extern const base::Feature kMacV2Sandbox; |
| 110 #endif // defined(OS_MACOSX) | 125 #endif // defined(OS_MACOSX) |
| 111 | 126 |
| 112 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 127 // 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). | 128 // alphabetical order, or in one of the ifdefs (also in order in each section). |
| 114 | 129 |
| 115 } // namespace features | 130 } // namespace features |
| 116 | 131 |
| 117 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ | 132 #endif // CONTENT_PUBLIC_COMMON_CONTENT_FEATURES_H_ |
| OLD | NEW |