Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: net/quic/core/quic_data_reader.h

Issue 2759203003: Landing Recent QUIC changes until Thu Mar 16 17:24:53 2017 +0000 (Closed)
Patch Set: float Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/congestion_control/bbr_sender_test.cc ('k') | net/quic/core/quic_data_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_data_reader.h
diff --git a/net/quic/core/quic_data_reader.h b/net/quic/core/quic_data_reader.h
index 2e365033e9e411dcefce0dca1d99e4742dd182d4..61c48030c2062430fbeff4f7fd623a1fcaec5cc0 100644
--- a/net/quic/core/quic_data_reader.h
+++ b/net/quic/core/quic_data_reader.h
@@ -72,6 +72,15 @@ class QUIC_EXPORT_PRIVATE QuicDataReader {
// Returns true on success, false otherwise.
bool ReadStringPiece(QuicStringPiece* result, size_t len);
+ // Reads connection ID represented as 64-bit unsigned integer into the given
+ // output parameter.
+ // Forwards the internal iterator on success.
+ // Returns true on success, false otherwise.
+ // TODO(fayang): Remove this method and use ReadUInt64() once deprecating
+ // quic_restart_flag_quic_rw_cid_in_big_endian and QuicDataReader has a mode
+ // indicating reading in little/big endian.
+ bool ReadConnectionId(uint64_t* connection_id);
+
// Returns the remaining payload as a QuicStringPiece.
//
// NOTE: Does not copy but rather references strings in the underlying buffer.
« no previous file with comments | « net/quic/core/congestion_control/bbr_sender_test.cc ('k') | net/quic/core/quic_data_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698