| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Reserved ID for the headers stream. | 133 // Reserved ID for the headers stream. |
| 134 const QuicStreamId kHeadersStreamId = 3; | 134 const QuicStreamId kHeadersStreamId = 3; |
| 135 | 135 |
| 136 // Header key used to identify final offset on data stream when sending HTTP/2 | 136 // Header key used to identify final offset on data stream when sending HTTP/2 |
| 137 // trailing headers over QUIC. | 137 // trailing headers over QUIC. |
| 138 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey; | 138 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey; |
| 139 | 139 |
| 140 // Maximum delayed ack time, in ms. | 140 // Maximum delayed ack time, in ms. |
| 141 const int64_t kMaxDelayedAckTimeMs = 25; | 141 const int64_t kMaxDelayedAckTimeMs = 25; |
| 142 | 142 |
| 143 // Minimum tail loss probe time in ms. |
| 144 static const int64_t kMinTailLossProbeTimeoutMs = 10; |
| 145 |
| 143 // The timeout before the handshake succeeds. | 146 // The timeout before the handshake succeeds. |
| 144 const int64_t kInitialIdleTimeoutSecs = 5; | 147 const int64_t kInitialIdleTimeoutSecs = 5; |
| 145 // The default idle timeout. | 148 // The default idle timeout. |
| 146 const int64_t kDefaultIdleTimeoutSecs = 30; | 149 const int64_t kDefaultIdleTimeoutSecs = 30; |
| 147 // The maximum idle timeout that can be negotiated. | 150 // The maximum idle timeout that can be negotiated. |
| 148 const int64_t kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. | 151 const int64_t kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. |
| 149 // The default timeout for a connection until the crypto handshake succeeds. | 152 // The default timeout for a connection until the crypto handshake succeeds. |
| 150 const int64_t kMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. | 153 const int64_t kMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. |
| 151 | 154 |
| 152 // Default limit on the number of undecryptable packets the connection buffers | 155 // Default limit on the number of undecryptable packets the connection buffers |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1415 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1413 | 1416 |
| 1414 const struct iovec* iov; | 1417 const struct iovec* iov; |
| 1415 const int iov_count; | 1418 const int iov_count; |
| 1416 const size_t total_length; | 1419 const size_t total_length; |
| 1417 }; | 1420 }; |
| 1418 | 1421 |
| 1419 } // namespace net | 1422 } // namespace net |
| 1420 | 1423 |
| 1421 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1424 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |