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

Side by Side Diff: net/quic/core/quic_constants.h

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CORE_QUIC_CONSTANTS_H_ 5 #ifndef NET_QUIC_CORE_QUIC_CONSTANTS_H_
6 #define NET_QUIC_CORE_QUIC_CONSTANTS_H_ 6 #define NET_QUIC_CORE_QUIC_CONSTANTS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 // kDiversificationNonceSize is the size, in bytes, of the nonce that a server 174 // kDiversificationNonceSize is the size, in bytes, of the nonce that a server
175 // may set in the packet header to ensure that its INITIAL keys are not 175 // may set in the packet header to ensure that its INITIAL keys are not
176 // duplicated. 176 // duplicated.
177 const size_t kDiversificationNonceSize = 32; 177 const size_t kDiversificationNonceSize = 32;
178 178
179 // The largest gap in packets we'll accept without closing the connection. 179 // The largest gap in packets we'll accept without closing the connection.
180 // This will likely have to be tuned. 180 // This will likely have to be tuned.
181 const QuicPacketNumber kMaxPacketGap = 5000; 181 const QuicPacketNumber kMaxPacketGap = 5000;
182 182
183 // The maximum number of random padding bytes to add.
184 const QuicByteCount kMaxNumRandomPaddingBytes = 256;
185
183 } // namespace net 186 } // namespace net
184 187
185 #endif // NET_QUIC_CORE_QUIC_CONSTANTS_H_ 188 #endif // NET_QUIC_CORE_QUIC_CONSTANTS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698