summaryrefslogtreecommitdiff
path: root/chromium/net/base/features.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-01 11:08:40 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-01 12:16:21 +0000
commit03c549e0392f92c02536d3f86d5e1d8dfa3435ac (patch)
treefe49d170a929b34ba82cd10db1a0bd8e3760fa4b /chromium/net/base/features.h
parent5d013f5804a0d91fcf6c626b2d6fb6eca5c845b0 (diff)
downloadqtwebengine-chromium-03c549e0392f92c02536d3f86d5e1d8dfa3435ac.tar.gz
BASELINE: Update Chromium to 91.0.4472.160
Change-Id: I0def1f08a2412aeed79a9ab95dd50eb5c3f65f31 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/base/features.h')
-rw-r--r--chromium/net/base/features.h45
1 files changed, 42 insertions, 3 deletions
diff --git a/chromium/net/base/features.h b/chromium/net/base/features.h
index e06a47f3573..2e01ea82033 100644
--- a/chromium/net/base/features.h
+++ b/chromium/net/base/features.h
@@ -11,6 +11,7 @@
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_piece.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "net/base/net_export.h"
#include "net/net_buildflags.h"
@@ -21,6 +22,11 @@ namespace features {
// https://github.com/WICG/lang-client-hint proposes that we deprecate.
NET_EXPORT extern const base::Feature kAcceptLanguageHeader;
+// Enables ALPS extension of TLS 1.3 for HTTP/2, see
+// https://vasilvv.github.io/tls-alps/draft-vvv-tls-alps.html and
+// https://vasilvv.github.io/httpbis-alps/draft-vvv-httpbis-alps.html.
+NET_EXPORT extern const base::Feature kAlpsForHttp2;
+
// When kCapReferrerToOriginOnCrossOrigin is enabled, HTTP referrers on cross-
// origin requests are restricted to contain at most the source origin.
NET_EXPORT extern const base::Feature kCapReferrerToOriginOnCrossOrigin;
@@ -177,6 +183,13 @@ NET_EXPORT extern const base::Feature kTLS13KeyUpdate;
// Enables CECPQ2, a post-quantum key-agreement, in TLS 1.3 connections.
NET_EXPORT extern const base::Feature kPostQuantumCECPQ2;
+// Enables CECPQ2, a post-quantum key-agreement, in TLS 1.3 connections for a
+// subset of domains. (This is intended as Finch kill-switch. For testing
+// compatibility with large ClientHello messages, use |kPostQuantumCECPQ2|.)
+NET_EXPORT extern const base::Feature kPostQuantumCECPQ2SomeDomains;
+NET_EXPORT extern const base::FeatureParam<std::string>
+ kPostQuantumCECPQ2Prefix;
+
// Changes the timeout after which unused sockets idle sockets are cleaned up.
NET_EXPORT extern const base::Feature kNetUnusedIdleSocketTimeout;
@@ -215,9 +228,20 @@ NET_EXPORT extern const base::Feature kSameSiteDefaultChecksMethodRigorously;
#if BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED)
// When enabled, use the builtin cert verifier instead of the platform verifier.
NET_EXPORT extern const base::Feature kCertVerifierBuiltinFeature;
-#endif
-
-NET_EXPORT extern const base::Feature kAppendFrameOriginToNetworkIsolationKey;
+#if defined(OS_MAC)
+NET_EXPORT extern const base::FeatureParam<int> kCertVerifierBuiltinImpl;
+NET_EXPORT extern const base::FeatureParam<int> kCertVerifierBuiltinCacheSize;
+#endif /* defined(OS_MAC) */
+#endif /* BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) */
+
+#if BUILDFLAG(TRIAL_COMPARISON_CERT_VERIFIER_SUPPORTED)
+NET_EXPORT extern const base::Feature kCertDualVerificationTrialFeature;
+#if defined(OS_MAC)
+NET_EXPORT extern const base::FeatureParam<int> kCertDualVerificationTrialImpl;
+NET_EXPORT extern const base::FeatureParam<int>
+ kCertDualVerificationTrialCacheSize;
+#endif /* defined(OS_MAC) */
+#endif /* BUILDFLAG(BUILTIN_CERT_VERIFIER_FEATURE_SUPPORTED) */
// Turns off streaming media caching to disk when on battery power.
NET_EXPORT extern const base::Feature kTurnOffStreamingMediaCachingOnBattery;
@@ -308,6 +332,21 @@ NET_EXPORT extern const base::Feature kSameSiteCookiesBugfix1166211;
// notifications are still dispatched as usual.
NET_EXPORT extern const base::Feature kNoCookieChangeNotificationOnLoad;
+#if BUILDFLAG(ENABLE_REPORTING)
+// When enabled this feature will allow a new Reporting-Endpoints header to
+// configure reporting endpoints for report delivery. This is used to support
+// the new Document Reporting spec.
+NET_EXPORT extern const base::Feature kDocumentReporting;
+#endif // BUILDFLAG(ENABLE_REPORTING)
+
+// When this feature is enabled, redirected requests will be considered
+// cross-site for the purpose of SameSite cookies if any redirect hop was
+// cross-site to the target URL, even if the original initiator of the
+// redirected request was same-site with the target URL (and the
+// site-for-cookies).
+// See spec changes in https://github.com/httpwg/http-extensions/pull/1348
+NET_EXPORT extern const base::Feature kCookieSameSiteConsidersRedirectChain;
+
} // namespace features
} // namespace net