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

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

Issue 1968653002: Rename flags for Origin Trials framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 // The Experimental Framework for controlling access to API experiments.
34 const base::Feature kExperimentalFramework{"ExperimentalFramework",
35 base::FEATURE_ENABLED_BY_DEFAULT};
36
37 // Enable the material design playback UI for media elements. This is always 33 // Enable the material design playback UI for media elements. This is always
38 // on for OS_ANDROID, but may be enabled by experiment for other platforms. 34 // on for OS_ANDROID, but may be enabled by experiment for other platforms.
39 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi", 35 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi",
40 base::FEATURE_DISABLED_BY_DEFAULT}; 36 base::FEATURE_DISABLED_BY_DEFAULT};
41 37
42 // FeatureList definition for trials to enable the download button on 38 // FeatureList definition for trials to enable the download button on
43 // MediaDocument. 39 // MediaDocument.
44 const base::Feature kMediaDocumentDownloadButton{ 40 const base::Feature kMediaDocumentDownloadButton{
45 "MediaDocumentDownloadButton", 41 "MediaDocumentDownloadButton",
46 base::FEATURE_DISABLED_BY_DEFAULT 42 base::FEATURE_DISABLED_BY_DEFAULT
47 }; 43 };
48 44
49 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh). 45 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh).
50 // See https://crbug.com/558829 46 // See https://crbug.com/558829
51 const base::Feature kNonValidatingReloadOnRefreshContent{ 47 const base::Feature kNonValidatingReloadOnRefreshContent{
52 "NonValidatingReloadOnRefreshContent", 48 "NonValidatingReloadOnRefreshContent",
53 base::FEATURE_DISABLED_BY_DEFAULT}; 49 base::FEATURE_DISABLED_BY_DEFAULT};
54 50
55 // An experiment to optimize resource loading IPC for small resources. 51 // An experiment to optimize resource loading IPC for small resources.
56 // http://crbug.com/580928 52 // http://crbug.com/580928
57 const base::Feature kOptimizeIPCForSmallResource{ 53 const base::Feature kOptimizeIPCForSmallResource{
58 "OptimizeForSmallResource", 54 "OptimizeForSmallResource",
59 base::FEATURE_DISABLED_BY_DEFAULT}; 55 base::FEATURE_DISABLED_BY_DEFAULT};
60 56
57 // Origin Trials for controlling access to feature/API experiments.
58 const base::Feature kOriginTrials{"OriginTrials",
59 base::FEATURE_ENABLED_BY_DEFAULT};
60
61 // Partial support for pointer event feature. 61 // Partial support for pointer event feature.
62 const base::Feature kPointerEvents{"PointerEvent", 62 const base::Feature kPointerEvents{"PointerEvent",
63 base::FEATURE_DISABLED_BY_DEFAULT}; 63 base::FEATURE_DISABLED_BY_DEFAULT};
64 64
65 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). 65 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring).
66 const base::Feature kScrollAnchoring{"ScrollAnchoring", 66 const base::Feature kScrollAnchoring{"ScrollAnchoring",
67 base::FEATURE_DISABLED_BY_DEFAULT}; 67 base::FEATURE_DISABLED_BY_DEFAULT};
68 68
69 // Enables implementation of the Cache-Control: stale-while-revalidate directive 69 // Enables implementation of the Cache-Control: stale-while-revalidate directive
70 // which permits servers to allow the use of stale resources while revalidation 70 // which permits servers to allow the use of stale resources while revalidation
(...skipping 24 matching lines...) Expand all
95 // we will not use replica editor and do a round trip to renderer to synchronize 95 // we will not use replica editor and do a round trip to renderer to synchronize
96 // with Blink data. 96 // with Blink data.
97 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; 97 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT};
98 98
99 // FeatureList definition for the Seccomp field trial. 99 // FeatureList definition for the Seccomp field trial.
100 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", 100 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid",
101 base::FEATURE_DISABLED_BY_DEFAULT}; 101 base::FEATURE_DISABLED_BY_DEFAULT};
102 #endif 102 #endif
103 103
104 } // namespace features 104 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698