Move PRIORITY frame constants into http_frames.h.
Change type from size_t to the more appropriate QuicByteCount. Also, use
kPriorityExclusiveBit in decoder.
gfe-relnote: n/a, QUIC v99-only refactor.
PiperOrigin-RevId: 258670873
Change-Id: I9dd825a86b983a1f95f6809460310d96713b053c
diff --git a/quic/core/http/http_frames.h b/quic/core/http/http_frames.h
index b84b658..ac590e6 100644
--- a/quic/core/http/http_frames.h
+++ b/quic/core/http/http_frames.h
@@ -49,6 +49,14 @@
//
// The PRIORITY (type=0x02) frame specifies the sender-advised priority
// of a stream
+
+// Length of the weight field of a priority frame.
+const QuicByteCount kPriorityWeightLength = 1;
+// Length of a priority frame's first byte.
+const QuicByteCount kPriorityFirstByteLength = 1;
+// The bit that indicates Priority frame is exclusive.
+const uint8_t kPriorityExclusiveBit = 8;
+
enum PriorityElementType : uint8_t {
REQUEST_STREAM = 0,
PUSH_STREAM = 1,