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

Unified Diff: net/quic/quic_packet_creator.h

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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
Index: net/quic/quic_packet_creator.h
diff --git a/net/quic/quic_packet_creator.h b/net/quic/quic_packet_creator.h
index 6f557c0a639df88825b0ddf599e409b17fca352e..cb5862531f4ebf83a2df66a380f0349fccb245fc 100644
--- a/net/quic/quic_packet_creator.h
+++ b/net/quic/quic_packet_creator.h
@@ -32,13 +32,16 @@ class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface {
Options()
: max_packet_length(kMaxPacketSize),
random_reorder(false),
- max_packets_per_fec_group(0) {
+ max_packets_per_fec_group(0),
+ send_guid_length(PACKET_8BYTE_GUID) {
}
size_t max_packet_length;
bool random_reorder; // Inefficient: rewrite if used at scale.
// 0 indicates fec is disabled.
size_t max_packets_per_fec_group;
+ // Length of guid to send over the wire.
+ QuicGuidLength send_guid_length;
};
// QuicRandom* required for packet entropy.
@@ -65,7 +68,10 @@ class NET_EXPORT_PRIVATE QuicPacketCreator : public QuicFecBuilderInterface {
void StopSendingVersion();
// The overhead the framing will add for a packet with num_frames frames.
- static size_t StreamFramePacketOverhead(int num_frames, bool include_version);
+ static size_t StreamFramePacketOverhead(int num_frames,
+ QuicGuidLength guid_length,
+ bool include_version,
+ InFecGroup is_in_fec_group);
bool HasRoomForStreamFrame() const;

Powered by Google App Engine
This is Rietveld 408576698