Parse SETTINGS_DEPRECATE_HTTP2_PRIORITIES.
Implement logic for
https://httpwg.org/http-extensions/draft-ietf-httpbis-priority.html#name-disabling-http-2-priorities
in SpdySession, adding accessors for HTTP/2 priorities and
PRIORITY_UPDATE frame. Add |enable_priority_update| knob to
SpdySessionDependencies via SpdySessionPool to SpdySession. Default to
current behavior both in tests and production.
HttpNetworkSession: :Params and plumb it through from
Change-Id: Iada98d7d692b3ce10e37cd9681ba16a99d564237
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616834
Reviewed-by: Renjie Tang <[email protected]>
Commit-Queue: Bence Béky <[email protected]>
Cr-Commit-Position: refs/heads/master@{#843004}
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index f207996..4eb361f 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -90,6 +90,7 @@
const spdy::SettingsMap& initial_settings,
const base::Optional<GreasedHttp2Frame>& greased_http2_frame,
bool http2_end_stream_with_data_frame,
+ bool enable_priority_update,
SpdySessionPool::TimeFunc time_func,
NetworkQualityEstimator* network_quality_estimator)
: http_server_properties_(http_server_properties),
@@ -107,6 +108,7 @@
initial_settings_(initial_settings),
greased_http2_frame_(greased_http2_frame),
http2_end_stream_with_data_frame_(http2_end_stream_with_data_frame),
+ enable_priority_update_(enable_priority_update),
time_func_(time_func),
push_delegate_(nullptr),
network_quality_estimator_(network_quality_estimator) {
@@ -667,8 +669,9 @@
enable_ping_based_connection_checking_, is_http2_enabled_,
is_quic_enabled_, is_trusted_proxy, session_max_recv_window_size_,
session_max_queued_capped_frames_, initial_settings_,
- greased_http2_frame_, http2_end_stream_with_data_frame_, time_func_,
- push_delegate_, network_quality_estimator_, net_log);
+ greased_http2_frame_, http2_end_stream_with_data_frame_,
+ enable_priority_update_, time_func_, push_delegate_,
+ network_quality_estimator_, net_log);
}
base::WeakPtr<SpdySession> SpdySessionPool::InsertSession(