| OLD | NEW |
| 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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
| 6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 ReceivedPacketInfo received_info; | 708 ReceivedPacketInfo received_info; |
| 709 }; | 709 }; |
| 710 | 710 |
| 711 // Defines for all types of congestion feedback that will be negotiated in QUIC, | 711 // Defines for all types of congestion feedback that will be negotiated in QUIC, |
| 712 // kTCP MUST be supported by all QUIC implementations to guarantee 100% | 712 // kTCP MUST be supported by all QUIC implementations to guarantee 100% |
| 713 // compatibility. | 713 // compatibility. |
| 714 enum CongestionFeedbackType { | 714 enum CongestionFeedbackType { |
| 715 kTCP, // Used to mimic TCP. | 715 kTCP, // Used to mimic TCP. |
| 716 kInterArrival, // Use additional inter arrival information. | 716 kInterArrival, // Use additional inter arrival information. |
| 717 kFixRate, // Provided for testing. | 717 kFixRate, // Provided for testing. |
| 718 kTCPBBR, // BBR implementation based on TCP congestion feedback. | 718 }; |
| 719 |
| 720 // Defines for all types of congestion control algorithms that can be used in |
| 721 // QUIC. Note that this is separate from the congestion feedback type - |
| 722 // some congestion control algorithms may use the same feedback type |
| 723 // (Reno and Cubic are the classic example for that). |
| 724 enum CongestionControlType { |
| 725 kCubic, |
| 726 kReno, |
| 727 kFixRateCongestionControl, // Provided for testing. |
| 728 kBBR, |
| 719 }; | 729 }; |
| 720 | 730 |
| 721 enum LossDetectionType { | 731 enum LossDetectionType { |
| 722 kNack, // Used to mimic TCP's loss detection. | 732 kNack, // Used to mimic TCP's loss detection. |
| 723 kTime, // Time based loss detection. | 733 kTime, // Time based loss detection. |
| 724 }; | 734 }; |
| 725 | 735 |
| 726 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP { | 736 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP { |
| 727 CongestionFeedbackMessageTCP(); | 737 CongestionFeedbackMessageTCP(); |
| 728 | 738 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 // Stores the sequence numbers of all transmissions of this packet. | 1074 // Stores the sequence numbers of all transmissions of this packet. |
| 1065 // Can never be null. | 1075 // Can never be null. |
| 1066 SequenceNumberSet* all_transmissions; | 1076 SequenceNumberSet* all_transmissions; |
| 1067 // In flight packets have not been abandoned or lost. | 1077 // In flight packets have not been abandoned or lost. |
| 1068 bool in_flight; | 1078 bool in_flight; |
| 1069 }; | 1079 }; |
| 1070 | 1080 |
| 1071 } // namespace net | 1081 } // namespace net |
| 1072 | 1082 |
| 1073 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1083 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |