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

Side by Side Diff: net/quic/quic_protocol.h

Issue 1397983007: relnote: remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rch_insecure_quic
Patch Set: Compile fix Created 5 years, 2 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/quic_http_stream_test.cc ('k') | net/quic/quic_reliable_client_stream_test.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_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 #include <limits> 10 #include <limits>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const QuicByteCount kDefaultServerMaxPacketSize = 1000; 58 const QuicByteCount kDefaultServerMaxPacketSize = 1000;
59 // The maximum packet size of any QUIC packet, based on ethernet's max size, 59 // The maximum packet size of any QUIC packet, based on ethernet's max size,
60 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an 60 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an
61 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's 61 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's
62 // max packet size is 1500 bytes, 1500 - 48 = 1452. 62 // max packet size is 1500 bytes, 1500 - 48 = 1452.
63 const QuicByteCount kMaxPacketSize = 1452; 63 const QuicByteCount kMaxPacketSize = 1452;
64 // Default maximum packet size used in the Linux TCP implementation. 64 // Default maximum packet size used in the Linux TCP implementation.
65 // Used in QUIC for congestion window computations in bytes. 65 // Used in QUIC for congestion window computations in bytes.
66 const QuicByteCount kDefaultTCPMSS = 1460; 66 const QuicByteCount kDefaultTCPMSS = 1460;
67 67
68 // We match SPDY's use of 32 when secure (since we'd compete with SPDY). 68 // We match SPDY's use of 32 (since we'd compete with SPDY).
69 const QuicPacketCount kInitialCongestionWindowSecure = 32; 69 const QuicPacketCount kInitialCongestionWindow = 32;
70 // Be conservative, and just use double a typical TCP ICWND for HTTP.
71 const QuicPacketCount kInitialCongestionWindowInsecure = 20;
72 70
73 // Minimum size of initial flow control window, for both stream and session. 71 // Minimum size of initial flow control window, for both stream and session.
74 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB 72 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB
75 73
76 // Minimum size of the CWND, in packets, when doing bandwidth resumption. 74 // Minimum size of the CWND, in packets, when doing bandwidth resumption.
77 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; 75 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10;
78 76
79 // Maximum size of the CWND, in packets. 77 // Maximum size of the CWND, in packets.
80 const QuicPacketCount kMaxCongestionWindow = 200; 78 const QuicPacketCount kMaxCongestionWindow = 200;
81 79
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1206 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1209 1207
1210 const struct iovec* iov; 1208 const struct iovec* iov;
1211 const int iov_count; 1209 const int iov_count;
1212 const size_t total_length; 1210 const size_t total_length;
1213 }; 1211 };
1214 1212
1215 } // namespace net 1213 } // namespace net
1216 1214
1217 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1215 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698