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 <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 kCubicBytes, | 1053 kCubicBytes, |
1054 kReno, | 1054 kReno, |
1055 kRenoBytes, | 1055 kRenoBytes, |
1056 kBBR, | 1056 kBBR, |
1057 }; | 1057 }; |
1058 | 1058 |
1059 enum LossDetectionType { | 1059 enum LossDetectionType { |
1060 kNack, // Used to mimic TCP's loss detection. | 1060 kNack, // Used to mimic TCP's loss detection. |
1061 kTime, // Time based loss detection. | 1061 kTime, // Time based loss detection. |
1062 kAdaptiveTime, // Adaptive time based loss detection. | 1062 kAdaptiveTime, // Adaptive time based loss detection. |
| 1063 kLazyFack, // Nack based but with FACK disabled for the first ack. |
1063 }; | 1064 }; |
1064 | 1065 |
1065 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { | 1066 struct NET_EXPORT_PRIVATE QuicRstStreamFrame { |
1066 QuicRstStreamFrame(); | 1067 QuicRstStreamFrame(); |
1067 QuicRstStreamFrame(QuicStreamId stream_id, | 1068 QuicRstStreamFrame(QuicStreamId stream_id, |
1068 QuicRstStreamErrorCode error_code, | 1069 QuicRstStreamErrorCode error_code, |
1069 QuicStreamOffset bytes_written); | 1070 QuicStreamOffset bytes_written); |
1070 | 1071 |
1071 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 1072 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
1072 std::ostream& os, | 1073 std::ostream& os, |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1531 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1531 | 1532 |
1532 const struct iovec* iov; | 1533 const struct iovec* iov; |
1533 const int iov_count; | 1534 const int iov_count; |
1534 const size_t total_length; | 1535 const size_t total_length; |
1535 }; | 1536 }; |
1536 | 1537 |
1537 } // namespace net | 1538 } // namespace net |
1538 | 1539 |
1539 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1540 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |