Add support for retry integrity tag

This CL adds support for the retry integrity tag which was added in draft-25. It increases resilience to network errors and makes retry injection by attackers harder. This changes the wire-format of T050 and T099/draft-25 which are both disabled.

gfe-relnote: support retry integrity tag, client-only, not flag-protected
PiperOrigin-RevId: 292044658
Change-Id: Ib62a4d58cb761dce284c36b450816ad9151e4062
diff --git a/common/quiche_data_reader.h b/common/quiche_data_reader.h
index 45c0961..c837172 100644
--- a/common/quiche_data_reader.h
+++ b/common/quiche_data_reader.h
@@ -101,6 +101,15 @@
   // DOES NOT forward the internal iterator.
   quiche::QuicheStringPiece FullPayload() const;
 
+  // Returns the part of the payload that has been already read as a
+  // quiche::QuicheStringPiece.
+  //
+  // NOTE: Does not copy but rather references strings in the underlying buffer.
+  // This should be kept in mind when handling memory management!
+  //
+  // DOES NOT forward the internal iterator.
+  quiche::QuicheStringPiece PreviouslyReadPayload() const;
+
   // Reads a given number of bytes into the given buffer. The buffer
   // must be of adequate size.
   // Forwards the internal iterator on success.