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

Unified Diff: net/quic/quic_protocol.h

Issue 1542123002: Add path_id to SerializedPacket. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110310127
Patch Set: Created 5 years 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_packet_creator_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.h
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
index 36f9c2d4dfc1c550c90e6bf4f471823c1d7bca1a..a7ac1f6ab12ec872d322b29765f23ddc6f86d4f4 100644
--- a/net/quic/quic_protocol.h
+++ b/net/quic/quic_protocol.h
@@ -194,6 +194,8 @@ const uint64 kUFloat16MaxValue = // 0x3FFC0000000
// Default path ID.
const QuicPathId kDefaultPathId = 0;
+// Invalid path ID.
+const QuicPathId kInvalidPathId = -1;
enum TransmissionType {
NOT_RETRANSMISSION,
@@ -1197,14 +1199,16 @@ struct NET_EXPORT_PRIVATE AckListenerWrapper {
};
struct NET_EXPORT_PRIVATE SerializedPacket {
- SerializedPacket(QuicPacketNumber packet_number,
+ SerializedPacket(QuicPathId path_id,
+ QuicPacketNumber packet_number,
QuicPacketNumberLength packet_number_length,
QuicEncryptedPacket* packet,
QuicPacketEntropyHash entropy_hash,
RetransmittableFrames* retransmittable_frames,
bool has_ack,
bool has_stop_waiting);
- SerializedPacket(QuicPacketNumber packet_number,
+ SerializedPacket(QuicPathId path_id,
+ QuicPacketNumber packet_number,
QuicPacketNumberLength packet_number_length,
char* encrypted_buffer,
size_t encrypted_length,
@@ -1218,6 +1222,7 @@ struct NET_EXPORT_PRIVATE SerializedPacket {
QuicEncryptedPacket* packet;
RetransmittableFrames* retransmittable_frames;
+ QuicPathId path_id;
QuicPacketNumber packet_number;
QuicPacketNumberLength packet_number_length;
EncryptionLevel encryption_level;
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698