| 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/public/common/content_features.h" | 6 #include "content/public/common/content_features.h" |
| 7 | 7 |
| 8 namespace features { | 8 namespace features { |
| 9 | 9 |
| 10 // All features in alphabetical order. | 10 // All features in alphabetical order. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 "LazyInitializeMediaControls", base::FEATURE_ENABLED_BY_DEFAULT}; | 126 "LazyInitializeMediaControls", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 127 | 127 |
| 128 // Enables lazily parsing css properties for performance. | 128 // Enables lazily parsing css properties for performance. |
| 129 const base::Feature kLazyParseCSS{"LazyParseCSS", | 129 const base::Feature kLazyParseCSS{"LazyParseCSS", |
| 130 base::FEATURE_DISABLED_BY_DEFAULT}; | 130 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 131 | 131 |
| 132 // Use Mojo IPC for resource loading. | 132 // Use Mojo IPC for resource loading. |
| 133 const base::Feature kLoadingWithMojo { | 133 const base::Feature kLoadingWithMojo { |
| 134 "LoadingWithMojo", | 134 "LoadingWithMojo", |
| 135 #if defined(OS_ANDROID) | 135 #if defined(OS_ANDROID) |
| 136 base::FEATURE_ENABLED_BY_DEFAULT |
| 137 #else |
| 136 base::FEATURE_DISABLED_BY_DEFAULT | 138 base::FEATURE_DISABLED_BY_DEFAULT |
| 137 #else | |
| 138 base::FEATURE_ENABLED_BY_DEFAULT | |
| 139 #endif | 139 #endif |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 // Enables the memory coordinator. | 142 // Enables the memory coordinator. |
| 143 // WARNING: | 143 // WARNING: |
| 144 // The memory coordinator is not ready for use and enabling this may cause | 144 // The memory coordinator is not ready for use and enabling this may cause |
| 145 // unexpected memory regression at this point. Please do not enable this. | 145 // unexpected memory regression at this point. Please do not enable this. |
| 146 const base::Feature kMemoryCoordinator { | 146 const base::Feature kMemoryCoordinator { |
| 147 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT | 147 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT |
| 148 }; | 148 }; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 // Enables to use a snapshot file in creating V8 contexts. | 453 // Enables to use a snapshot file in creating V8 contexts. |
| 454 const base::Feature kV8ContextSnapshot{"V8ContextSnapshot", | 454 const base::Feature kV8ContextSnapshot{"V8ContextSnapshot", |
| 455 base::FEATURE_DISABLED_BY_DEFAULT}; | 455 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 456 | 456 |
| 457 bool IsMojoBlobsEnabled() { | 457 bool IsMojoBlobsEnabled() { |
| 458 return base::FeatureList::IsEnabled(features::kMojoBlobs) || | 458 return base::FeatureList::IsEnabled(features::kMojoBlobs) || |
| 459 base::FeatureList::IsEnabled(features::kNetworkService); | 459 base::FeatureList::IsEnabled(features::kNetworkService); |
| 460 } | 460 } |
| 461 | 461 |
| 462 } // namespace features | 462 } // namespace features |
| OLD | NEW |