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

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

Issue 400813002: Cleanup and adding GetCongestionControlType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_sent_packet_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 QuicPacketSequenceNumber sequence_number; 99 QuicPacketSequenceNumber sequence_number;
100 TransmissionType transmission_type; 100 TransmissionType transmission_type;
101 const RetransmittableFrames& retransmittable_frames; 101 const RetransmittableFrames& retransmittable_frames;
102 QuicSequenceNumberLength sequence_number_length; 102 QuicSequenceNumberLength sequence_number_length;
103 }; 103 };
104 104
105 QuicSentPacketManager(bool is_server, 105 QuicSentPacketManager(bool is_server,
106 const QuicClock* clock, 106 const QuicClock* clock,
107 QuicConnectionStats* stats, 107 QuicConnectionStats* stats,
108 CongestionFeedbackType congestion_type, 108 CongestionControlType congestion_control_type,
109 LossDetectionType loss_type); 109 LossDetectionType loss_type);
110 virtual ~QuicSentPacketManager(); 110 virtual ~QuicSentPacketManager();
111 111
112 virtual void SetFromConfig(const QuicConfig& config); 112 virtual void SetFromConfig(const QuicConfig& config);
113 113
114 // Called when a new packet is serialized. If the packet contains 114 // Called when a new packet is serialized. If the packet contains
115 // retransmittable data, it will be added to the unacked packet map. 115 // retransmittable data, it will be added to the unacked packet map.
116 void OnSerializedPacket(const SerializedPacket& serialized_packet); 116 void OnSerializedPacket(const SerializedPacket& serialized_packet);
117 117
118 // Called when a packet is retransmitted with a new sequence number. 118 // Called when a packet is retransmitted with a new sequence number.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Sets of packets acked and lost as a result of the last congestion event. 361 // Sets of packets acked and lost as a result of the last congestion event.
362 SendAlgorithmInterface::CongestionMap packets_acked_; 362 SendAlgorithmInterface::CongestionMap packets_acked_;
363 SendAlgorithmInterface::CongestionMap packets_lost_; 363 SendAlgorithmInterface::CongestionMap packets_lost_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 365 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
366 }; 366 };
367 367
368 } // namespace net 368 } // namespace net
369 369
370 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 370 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698