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

Side by Side Diff: net/quic/quic_packet_creator.h

Issue 424003002: Inline the members of QUIC's ReceivedPacketInfo into QuicAckFrame now (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_FixRate_congestion_type_71746617
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Accumulates frames for the next packet until more frames no longer fit or 5 // Accumulates frames for the next packet until more frames no longer fit or
6 // it's time to create a packet from them. Also provides packet creation of 6 // it's time to create a packet from them. Also provides packet creation of
7 // FEC packets based on previously created packets. 7 // FEC packets based on previously created packets.
8 8
9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_ 9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_
10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_ 10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void StopSendingVersion(); 62 void StopSendingVersion();
63 63
64 // Update the sequence number length to use in future packets as soon as it 64 // Update the sequence number length to use in future packets as soon as it
65 // can be safely changed. 65 // can be safely changed.
66 void UpdateSequenceNumberLength( 66 void UpdateSequenceNumberLength(
67 QuicPacketSequenceNumber least_packet_awaited_by_peer, 67 QuicPacketSequenceNumber least_packet_awaited_by_peer,
68 QuicByteCount congestion_window); 68 QuicByteCount congestion_window);
69 69
70 // The overhead the framing will add for a packet with one frame. 70 // The overhead the framing will add for a packet with one frame.
71 static size_t StreamFramePacketOverhead( 71 static size_t StreamFramePacketOverhead(
72 QuicVersion version,
73 QuicConnectionIdLength connection_id_length, 72 QuicConnectionIdLength connection_id_length,
74 bool include_version, 73 bool include_version,
75 QuicSequenceNumberLength sequence_number_length, 74 QuicSequenceNumberLength sequence_number_length,
76 QuicStreamOffset offset, 75 QuicStreamOffset offset,
77 InFecGroup is_in_fec_group); 76 InFecGroup is_in_fec_group);
78 77
79 bool HasRoomForStreamFrame(QuicStreamId id, QuicStreamOffset offset) const; 78 bool HasRoomForStreamFrame(QuicStreamId id, QuicStreamOffset offset) const;
80 79
81 // Converts a raw payload to a frame which fits into the currently open 80 // Converts a raw payload to a frame which fits into the currently open
82 // packet if there is one. Returns the number of bytes consumed from data. 81 // packet if there is one. Returns the number of bytes consumed from data.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 mutable size_t packet_size_; 287 mutable size_t packet_size_;
289 QuicFrames queued_frames_; 288 QuicFrames queued_frames_;
290 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 289 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
291 290
292 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 291 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
293 }; 292 };
294 293
295 } // namespace net 294 } // namespace net
296 295
297 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 296 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698