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

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

Issue 2279543004: [DocWriteBlocking] Add feature to block doc.written scripts if 2g-like network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added helper method: isConnectionEffectively2G Created 4 years, 3 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.
11 11
12 // Blocks scripts inserted by document.write if the connection is 2g-esque.
13 const base::Feature kBlockDocWriteIfEffectively2G{
14 "BlockDocWriteIfEffectively2G", base::FEATURE_DISABLED_BY_DEFAULT};
15
12 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support. 16 // Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support.
13 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli 17 // Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli
14 const base::Feature kBrotliEncoding{"brotli-encoding", 18 const base::Feature kBrotliEncoding{"brotli-encoding",
15 base::FEATURE_ENABLED_BY_DEFAULT}; 19 base::FEATURE_ENABLED_BY_DEFAULT};
16 20
17 // If Canvas2D Image Chromium is allowed, this feature controls whether it is 21 // If Canvas2D Image Chromium is allowed, this feature controls whether it is
18 // enabled. 22 // enabled.
19 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium", 23 const base::Feature kCanvas2DImageChromium{"Canvas2DImageChromium",
20 base::FEATURE_ENABLED_BY_DEFAULT}; 24 base::FEATURE_ENABLED_BY_DEFAULT};
21 25
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #endif 188 #endif
185 189
186 #if defined(OS_WIN) 190 #if defined(OS_WIN)
187 // Emergency "off switch" for new Windows sandbox security mitigation, 191 // Emergency "off switch" for new Windows sandbox security mitigation,
188 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 192 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
189 const base::Feature kWinSboxDisableExtensionPoints{ 193 const base::Feature kWinSboxDisableExtensionPoints{
190 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 194 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
191 #endif 195 #endif
192 196
193 } // namespace features 197 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698