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

Side by Side Diff: content/public/common/content_features.cc

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Histogram nits Created 4 years 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 // 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // WARNING: 107 // WARNING:
108 // The memory coordinator is not ready for use and enabling this may cause 108 // The memory coordinator is not ready for use and enabling this may cause
109 // unexpected memory regression at this point. Please do not enable this. 109 // unexpected memory regression at this point. Please do not enable this.
110 const base::Feature kMemoryCoordinator { 110 const base::Feature kMemoryCoordinator {
111 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT 111 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT
112 }; 112 };
113 113
114 // Kill switch for Web Notification content images. 114 // Kill switch for Web Notification content images.
115 const base::Feature kNotificationContentImage{"NotificationContentImage", 115 const base::Feature kNotificationContentImage{"NotificationContentImage",
116 base::FEATURE_ENABLED_BY_DEFAULT}; 116 base::FEATURE_ENABLED_BY_DEFAULT};
117 // An experiment forcing events to be non-blocking when the main thread is
118 // deemed unresponsive. See crbug.com/599609.
119 const base::Feature kMainThreadBusyScrollIntervention{
120 "MainThreadBusyScrollIntervention", base::FEATURE_DISABLED_BY_DEFAULT};
117 121
118 // An experiment to optimize resource loading IPC for small resources. 122 // An experiment to optimize resource loading IPC for small resources.
119 // http://crbug.com/580928 123 // http://crbug.com/580928
120 const base::Feature kOptimizeLoadingIPCForSmallResources{ 124 const base::Feature kOptimizeLoadingIPCForSmallResources{
121 "OptimizeLoadingIPCForSmallResources", 125 "OptimizeLoadingIPCForSmallResources",
122 base::FEATURE_DISABLED_BY_DEFAULT}; 126 base::FEATURE_DISABLED_BY_DEFAULT};
123 127
124 // Origin Trials for controlling access to feature/API experiments. 128 // Origin Trials for controlling access to feature/API experiments.
125 const base::Feature kOriginTrials{"OriginTrials", 129 const base::Feature kOriginTrials{"OriginTrials",
126 base::FEATURE_ENABLED_BY_DEFAULT}; 130 base::FEATURE_ENABLED_BY_DEFAULT};
127 131
128 // Whether the lookahead parser in Blink runs on the main thread. 132 // Whether the lookahead parser in Blink runs on the main thread.
129 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", 133 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread",
130 base::FEATURE_DISABLED_BY_DEFAULT}; 134 base::FEATURE_DISABLED_BY_DEFAULT};
131 135
132 // Whether document level event listeners should default 'passive' to true. 136 // Whether document level event listeners should default 'passive' to true.
133 const base::Feature kPassiveDocumentEventListeners{ 137 const base::Feature kPassiveDocumentEventListeners{
134 "PassiveDocumentEventListeners", base::FEATURE_ENABLED_BY_DEFAULT}; 138 "PassiveDocumentEventListeners", base::FEATURE_ENABLED_BY_DEFAULT};
135 139
136 // Whether we should force a touchstart and first touchmove per scroll event 140 // Whether we should force a touchstart and first touchmove per scroll event
137 // listeners to be 'passive' during fling. 141 // listeners to be non-blocking during fling.
138 const base::Feature kPassiveEventListenersDueToFling{ 142 const base::Feature kPassiveEventListenersDueToFling{
139 "PassiveEventListenersDueToFling", base::FEATURE_ENABLED_BY_DEFAULT}; 143 "PassiveEventListenersDueToFling", base::FEATURE_ENABLED_BY_DEFAULT};
140 144
141 // Pointer events support. 145 // Pointer events support.
142 const base::Feature kPointerEvents{"PointerEvent", 146 const base::Feature kPointerEvents{"PointerEvent",
143 base::FEATURE_ENABLED_BY_DEFAULT}; 147 base::FEATURE_ENABLED_BY_DEFAULT};
144 148
145 // Enables purge and suspend. 149 // Enables purge and suspend.
146 const base::Feature kPurgeAndSuspend{"PurgeAndSuspend", 150 const base::Feature kPurgeAndSuspend{"PurgeAndSuspend",
147 base::FEATURE_DISABLED_BY_DEFAULT}; 151 base::FEATURE_DISABLED_BY_DEFAULT};
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 #endif // !defined(OS_ANDROID) 266 #endif // !defined(OS_ANDROID)
263 267
264 #if defined(OS_WIN) 268 #if defined(OS_WIN)
265 // Emergency "off switch" for new Windows sandbox security mitigation, 269 // Emergency "off switch" for new Windows sandbox security mitigation,
266 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 270 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
267 const base::Feature kWinSboxDisableExtensionPoints{ 271 const base::Feature kWinSboxDisableExtensionPoints{
268 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 272 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
269 #endif 273 #endif
270 274
271 } // namespace features 275 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/renderer/input/main_thread_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698