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

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

Issue 528083004: Change the QUIC CongestionMap to be based on a vector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@improvements_to_quic_client_bin_74309904
Patch Set: Created 6 years, 3 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // Number of times the tail loss probe has been sent. 370 // Number of times the tail loss probe has been sent.
371 size_t consecutive_tlp_count_; 371 size_t consecutive_tlp_count_;
372 // Number of times the crypto handshake has been retransmitted. 372 // Number of times the crypto handshake has been retransmitted.
373 size_t consecutive_crypto_retransmission_count_; 373 size_t consecutive_crypto_retransmission_count_;
374 // Number of pending transmissions of TLP or crypto packets. 374 // Number of pending transmissions of TLP or crypto packets.
375 size_t pending_timer_transmission_count_; 375 size_t pending_timer_transmission_count_;
376 // Maximum number of tail loss probes to send before firing an RTO. 376 // Maximum number of tail loss probes to send before firing an RTO.
377 size_t max_tail_loss_probes_; 377 size_t max_tail_loss_probes_;
378 bool using_pacing_; 378 bool using_pacing_;
379 379
380 // Sets of packets acked and lost as a result of the last congestion event. 380 // Vectors packets acked and lost as a result of the last congestion event.
381 SendAlgorithmInterface::CongestionMap packets_acked_; 381 SendAlgorithmInterface::CongestionVector packets_acked_;
382 SendAlgorithmInterface::CongestionMap packets_lost_; 382 SendAlgorithmInterface::CongestionVector packets_lost_;
383 383
384 // Set to true after the crypto handshake has successfully completed. After 384 // Set to true after the crypto handshake has successfully completed. After
385 // this is true we no longer use HANDSHAKE_MODE, and further frames sent on 385 // this is true we no longer use HANDSHAKE_MODE, and further frames sent on
386 // the crypto stream (i.e. SCUP messages) are treated like normal 386 // the crypto stream (i.e. SCUP messages) are treated like normal
387 // retransmittable frames. 387 // retransmittable frames.
388 bool handshake_confirmed_; 388 bool handshake_confirmed_;
389 389
390 // Records bandwidth from server to client in normal operation, over periods 390 // Records bandwidth from server to client in normal operation, over periods
391 // of time with no loss events. 391 // of time with no loss events.
392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
393 393
394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
395 }; 395 };
396 396
397 } // namespace net 397 } // namespace net
398 398
399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_test.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698