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

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

Issue 2184973002: Add UMA to count the usage of sendBeacon with non-simple Content-Type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was 135 // Makes WebRTC use ECDSA certs by default (i.e., when no cert type was
136 // specified in JS). 136 // specified in JS).
137 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa", 137 const base::Feature kWebRtcEcdsaDefault {"WebRTC-EnableWebRtcEcdsa",
138 base::FEATURE_ENABLED_BY_DEFAULT}; 138 base::FEATURE_ENABLED_BY_DEFAULT};
139 139
140 // Controls whether the WebUSB API is enabled: 140 // Controls whether the WebUSB API is enabled:
141 // https://wicg.github.io/webusb 141 // https://wicg.github.io/webusb
142 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT}; 142 const base::Feature kWebUsb{"WebUSB", base::FEATURE_ENABLED_BY_DEFAULT};
143 143
144 // Make sendBeacon throw for a Blob with a non simple type.
145 const base::Feature kSendBeaconThrowForBlobWithNonSimpleType{
146 "SendBeaconThrowForBlobWithNonSimpleType",
147 base::FEATURE_DISABLED_BY_DEFAULT};
148
144 #if defined(OS_ANDROID) 149 #if defined(OS_ANDROID)
145 // Allow videos to autoplay without a user gesture if muted. 150 // Allow videos to autoplay without a user gesture if muted.
146 const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos", 151 const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos",
147 base::FEATURE_ENABLED_BY_DEFAULT}; 152 base::FEATURE_ENABLED_BY_DEFAULT};
148 153
149 // Use IME's own thread instead of using main UI thread. It also means that 154 // Use IME's own thread instead of using main UI thread. It also means that
150 // we will not use replica editor and do a round trip to renderer to synchronize 155 // we will not use replica editor and do a round trip to renderer to synchronize
151 // with Blink data. 156 // with Blink data.
152 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT}; 157 const base::Feature kImeThread{"ImeThread", base::FEATURE_DISABLED_BY_DEFAULT};
153 158
154 // FeatureList definition for the Seccomp field trial. 159 // FeatureList definition for the Seccomp field trial.
155 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid", 160 const base::Feature kSeccompSandboxAndroid{"SeccompSandboxAndroid",
156 base::FEATURE_DISABLED_BY_DEFAULT}; 161 base::FEATURE_DISABLED_BY_DEFAULT};
157 162
158 // The JavaScript API for payments on the web. 163 // The JavaScript API for payments on the web.
159 const base::Feature kWebPayments{"WebPayments", 164 const base::Feature kWebPayments{"WebPayments",
160 base::FEATURE_ENABLED_BY_DEFAULT}; 165 base::FEATURE_ENABLED_BY_DEFAULT};
161 166
162 #endif 167 #endif
163 168
164 #if defined(OS_WIN) 169 #if defined(OS_WIN)
165 // Emergency "off switch" for new Windows sandbox security mitigation, 170 // Emergency "off switch" for new Windows sandbox security mitigation,
166 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 171 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
167 const base::Feature kWinSboxDisableExtensionPoints{ 172 const base::Feature kWinSboxDisableExtensionPoints{
168 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 173 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
169 #endif 174 #endif
170 175
171 } // namespace features 176 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698