Update default HTTP/3 priority.
Default value in draft spec was changed from 1 to 3 at
https://github.com/httpwg/http-extensions/pull/1172.
Protected by FLAGS_quic_reloadable_flag_quic_http3_new_default_urgency_value.
PiperOrigin-RevId: 329295352
Change-Id: I7a3a42ed25f3250b8aa465c5c34ca924ba3167bc
diff --git a/quic/core/quic_stream.h b/quic/core/quic_stream.h
index d6fe8f8..8f669ca 100644
--- a/quic/core/quic_stream.h
+++ b/quic/core/quic_stream.h
@@ -113,6 +113,7 @@
class QUIC_EXPORT_PRIVATE QuicStream
: public QuicStreamSequencer::StreamInterface {
public:
+ // Default priority for Google QUIC.
// This is somewhat arbitrary. It's possible, but unlikely, we will either
// fail to set a priority client-side, or cancel a stream before stripping the
// priority from the wire server-side. In either case, start out with a
@@ -121,10 +122,6 @@
static_assert(kDefaultPriority ==
(spdy::kV3LowestPriority + spdy::kV3HighestPriority) / 2,
"Unexpected value of kDefaultPriority");
- // On the other hand, when using IETF QUIC, use the default value defined by
- // the priority extension at
- // https://httpwg.org/http-extensions/draft-ietf-httpbis-priority.html#default.
- static const int kDefaultUrgency = 1;
// Creates a new stream with stream_id |id| associated with |session|. If
// |is_static| is true, then the stream will be given precedence
@@ -142,6 +139,12 @@
virtual ~QuicStream();
+ // Default priority for IETF QUIC, defined by the priority extension at
+ // https://httpwg.org/http-extensions/draft-ietf-httpbis-priority.html#urgency.
+ // TODO(bnc): Remove this method and reinstate static const int
+ // kDefaultUrgency member when removing quic_http3_new_default_urgency_value.
+ static int DefaultUrgency();
+
// QuicStreamSequencer::StreamInterface implementation.
QuicStreamId id() const override { return id_; }
// Called by the stream subclass after it has consumed the final incoming