summaryrefslogtreecommitdiff
path: root/chromium/net/base/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/base/features.h')
-rw-r--r--chromium/net/base/features.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/chromium/net/base/features.h b/chromium/net/base/features.h
index 1069c09722c..00856023cc4 100644
--- a/chromium/net/base/features.h
+++ b/chromium/net/base/features.h
@@ -6,11 +6,21 @@
#define NET_BASE_FEATURES_H_
#include "base/feature_list.h"
+#include "base/metrics/field_trial_params.h"
#include "net/base/net_export.h"
namespace net {
namespace features {
+// Toggles the `Accept-Language` HTTP request header, which
+// https://github.com/WICG/lang-client-hint proposes that we deprecate.
+NET_EXPORT extern const base::Feature kAcceptLanguageHeader;
+
+// Caps the length of the `referer` header to 4k, which should be enough for
+// anyone.
+NET_EXPORT extern const base::Feature kCapRefererHeaderLength;
+NET_EXPORT extern const base::FeatureParam<int> kMaxRefererHeaderLength;
+
// Uses a site isolated code cache that is keyed on the resource url and the
// origin lock of the renderer that is requesting the resource. The requests
// to site-isolated code cache are handled by the content/GeneratedCodeCache
@@ -24,6 +34,9 @@ NET_EXPORT extern const base::Feature kIsolatedCodeCache;
// with some buggy non-compliant TLS-terminating proxies.
NET_EXPORT extern const base::Feature kEnforceTLS13Downgrade;
+// Enables TLS 1.3 early data.
+NET_EXPORT extern const base::Feature kEnableTLS13EarlyData;
+
// Enables optimizing the network quality estimation algorithms in network
// quality estimator (NQE).
NET_EXPORT extern const base::Feature kNetworkQualityEstimator;
@@ -31,6 +44,11 @@ NET_EXPORT extern const base::Feature kNetworkQualityEstimator;
// Splits cache entries by the request's top frame's origin if one is available.
NET_EXPORT extern const base::Feature kSplitCacheByTopFrameOrigin;
+// Partitions connections based on the NetworkIsolationKey associated with a
+// request.
+NET_EXPORT extern const base::Feature
+ kPartitionConnectionsByNetworkIsolationKey;
+
// Enables sending TLS 1.3 Key Update messages on TLS 1.3 connections in order
// to ensure that this corner of the spec is exercised. This is currently
// disabled by default because we discovered incompatibilities with some
@@ -41,8 +59,7 @@ NET_EXPORT extern const base::Feature kTLS13KeyUpdate;
NET_EXPORT extern const base::Feature kPostQuantumCECPQ2;
// Changes the timeout after which unused sockets idle sockets are cleaned up.
-NET_EXPORT
-extern const base::Feature kNetUnusedIdleSocketTimeout;
+NET_EXPORT extern const base::Feature kNetUnusedIdleSocketTimeout;
// When enabled, makes cookies without a SameSite attribute behave like
// SameSite=Lax cookies by default, and requires SameSite=None to be specified
@@ -51,6 +68,12 @@ extern const base::Feature kNetUnusedIdleSocketTimeout;
// restriction, i.e., available in a third-party context.
NET_EXPORT extern const base::Feature kSameSiteByDefaultCookies;
+// When enabled, cookies without SameSite restrictions that don't specify the
+// Secure attribute will be rejected if set from an insecure context, or treated
+// as secure if set from a secure context. This ONLY has an effect if
+// SameSiteByDefaultCookies is also enabled.
+NET_EXPORT extern const base::Feature kCookiesWithoutSameSiteMustBeSecure;
+
} // namespace features
} // namespace net