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

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

Issue 1986843003: Add feature for main frame before activation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 4 years, 7 months 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 12 matching lines...) Expand all
23 // permanently. See https://crbug.com/7648 23 // permanently. See https://crbug.com/7648
24 const base::Feature kDownloadResumption{"DownloadResumption", 24 const base::Feature kDownloadResumption{"DownloadResumption",
25 base::FEATURE_ENABLED_BY_DEFAULT}; 25 base::FEATURE_ENABLED_BY_DEFAULT};
26 26
27 // Speculatively pre-evaluate Javascript which will likely use document.write to 27 // Speculatively pre-evaluate Javascript which will likely use document.write to
28 // load an external script. The feature extracts the written markup and sends it 28 // load an external script. The feature extracts the written markup and sends it
29 // to the preload scanner. 29 // to the preload scanner.
30 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", 30 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator",
31 base::FEATURE_DISABLED_BY_DEFAULT}; 31 base::FEATURE_DISABLED_BY_DEFAULT};
32 32
33 // Enable the material design playback UI for media elements. This is always 33 // Can main thread be pipelined with activation. Always disabled for devices
34 // on for OS_ANDROID, but may be enabled by experiment for other platforms. 34 // with fewer than 4 cores irrespective of this flag. Can also be overridden by
35 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi", 35 // --enable(disable)-main-frame-before-activation command line flag.
36 base::FEATURE_ENABLED_BY_DEFAULT}; 36 const base::Feature kMainFrameBeforeActivation{
37 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT};
37 38
38 // FeatureList definition for trials to enable the download button on 39 // FeatureList definition for trials to enable the download button on
39 // MediaDocument. 40 // MediaDocument.
40 const base::Feature kMediaDocumentDownloadButton{ 41 const base::Feature kMediaDocumentDownloadButton{
41 "MediaDocumentDownloadButton", 42 "MediaDocumentDownloadButton",
42 base::FEATURE_DISABLED_BY_DEFAULT 43 base::FEATURE_DISABLED_BY_DEFAULT
43 }; 44 };
44 45
46 // Enable the material design playback UI for media elements. This is always
47 // on for OS_ANDROID, but may be enabled by experiment for other platforms.
48 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi",
49 base::FEATURE_ENABLED_BY_DEFAULT};
50
45 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh). 51 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh).
46 // See https://crbug.com/558829 52 // See https://crbug.com/558829
47 const base::Feature kNonValidatingReloadOnRefreshContent{ 53 const base::Feature kNonValidatingReloadOnRefreshContent{
48 "NonValidatingReloadOnRefreshContent", 54 "NonValidatingReloadOnRefreshContent",
49 base::FEATURE_DISABLED_BY_DEFAULT}; 55 base::FEATURE_DISABLED_BY_DEFAULT};
50 56
51 // An experiment to optimize resource loading IPC for small resources. 57 // An experiment to optimize resource loading IPC for small resources.
52 // http://crbug.com/580928 58 // http://crbug.com/580928
53 const base::Feature kOptimizeIPCForSmallResource{ 59 const base::Feature kOptimizeIPCForSmallResource{
54 "OptimizeForSmallResource", 60 "OptimizeForSmallResource",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // we will not use replica editor and do a round trip to renderer to synchronize 101 // we will not use replica editor and do a round trip to renderer to synchronize
96 // with Blink data. 102 // with Blink data.
97 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; 103 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT};
98 104
99 // FeatureList definition for the Seccomp field trial. 105 // FeatureList definition for the Seccomp field trial.
100 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", 106 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid",
101 base::FEATURE_DISABLED_BY_DEFAULT}; 107 base::FEATURE_DISABLED_BY_DEFAULT};
102 #endif 108 #endif
103 109
104 } // namespace features 110 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698