| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const QuicStreamId kMaxStreamIdDelta = 200; | 97 const QuicStreamId kMaxStreamIdDelta = 200; |
| 98 // Limit on the delta between header IDs. | 98 // Limit on the delta between header IDs. |
| 99 const QuicHeaderId kMaxHeaderIdDelta = 200; | 99 const QuicHeaderId kMaxHeaderIdDelta = 200; |
| 100 | 100 |
| 101 // Reserved ID for the crypto stream. | 101 // Reserved ID for the crypto stream. |
| 102 const QuicStreamId kCryptoStreamId = 1; | 102 const QuicStreamId kCryptoStreamId = 1; |
| 103 | 103 |
| 104 // Reserved ID for the headers stream. | 104 // Reserved ID for the headers stream. |
| 105 const QuicStreamId kHeadersStreamId = 3; | 105 const QuicStreamId kHeadersStreamId = 3; |
| 106 | 106 |
| 107 // Maximum delayed ack time, in ms. |
| 108 const int kMaxDelayedAckTime = 25; |
| 109 |
| 107 // This is the default network timeout a for connection till the crypto | 110 // This is the default network timeout a for connection till the crypto |
| 108 // handshake succeeds and the negotiated timeout from the handshake is received. | 111 // handshake succeeds and the negotiated timeout from the handshake is received. |
| 109 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins. | 112 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins. |
| 110 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes. | 113 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes. |
| 111 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs. | 114 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs. |
| 112 | 115 |
| 113 // Default ping timeout. | 116 // Default ping timeout. |
| 114 const int64 kPingTimeoutSecs = 15; // 15 secs. | 117 const int64 kPingTimeoutSecs = 15; // 15 secs. |
| 115 | 118 |
| 116 // We define an unsigned 16-bit floating point value, inspired by IEEE floats | 119 // We define an unsigned 16-bit floating point value, inspired by IEEE floats |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 // Stores the sequence numbers of all transmissions of this packet. | 1063 // Stores the sequence numbers of all transmissions of this packet. |
| 1061 // Can never be null. | 1064 // Can never be null. |
| 1062 SequenceNumberSet* all_transmissions; | 1065 SequenceNumberSet* all_transmissions; |
| 1063 // In flight packets have not been abandoned or lost. | 1066 // In flight packets have not been abandoned or lost. |
| 1064 bool in_flight; | 1067 bool in_flight; |
| 1065 }; | 1068 }; |
| 1066 | 1069 |
| 1067 } // namespace net | 1070 } // namespace net |
| 1068 | 1071 |
| 1069 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |