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

Unified Diff: net/quic/quic_utils.h

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 11 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/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils.h
diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
index 5a92022e8294caa37095149ad45d18b1c434520c..3965c6580540dc7ac99d2413a995f1f12693ab29 100644
--- a/net/quic/quic_utils.h
+++ b/net/quic/quic_utils.h
@@ -114,6 +114,12 @@ class NET_EXPORT_PRIVATE QuicUtils {
// Deletes and clears all the frames and the packet from serialized packet.
static void ClearSerializedPacket(SerializedPacket* serialized_packet);
+ // Returns a packed representation of |path_id| and |packet_number| in which
+ // the highest byte is set to |path_id| and the lower 7 bytes are the lower
+ // 7 bytes of |packet_number|.
+ static uint64_t PackPathIdAndPacketNumber(QuicPathId path_id,
+ QuicPacketNumber packet_number);
+
private:
DISALLOW_COPY_AND_ASSIGN(QuicUtils);
};
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698