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

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

Issue 687093002: Move receive_window_ from BbrTcpSender and TcpCubicSender to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Gathering_ClientConnectionStats_78688302
Patch Set: Created 6 years, 1 month 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_connection_test.cc ('k') | net/quic/quic_sent_packet_manager.h » ('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 <limits> 9 #include <limits>
10 #include <list> 10 #include <list>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const size_t kDefaultInitialWindow = 10; 63 const size_t kDefaultInitialWindow = 10;
64 const uint32 kMaxInitialWindow = 100; 64 const uint32 kMaxInitialWindow = 100;
65 65
66 // Default size of initial flow control window, for both stream and session. 66 // Default size of initial flow control window, for both stream and session.
67 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB 67 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB
68 68
69 // Maximum size of the congestion window, in packets, for TCP congestion control 69 // Maximum size of the congestion window, in packets, for TCP congestion control
70 // algorithms. 70 // algorithms.
71 const size_t kMaxTcpCongestionWindow = 200; 71 const size_t kMaxTcpCongestionWindow = 200;
72 72
73 // Size of the socket receive buffer in bytes. 73 // Default size of the socket receive buffer in bytes.
74 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; 74 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024;
75 // Minimum size of the socket receive buffer in bytes.
76 // Smaller values are ignored.
77 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024;
75 78
76 // Don't allow a client to suggest an RTT longer than 15 seconds. 79 // Don't allow a client to suggest an RTT longer than 15 seconds.
77 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; 80 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond;
78 81
79 // Maximum number of open streams per connection. 82 // Maximum number of open streams per connection.
80 const size_t kDefaultMaxStreamsPerConnection = 100; 83 const size_t kDefaultMaxStreamsPerConnection = 100;
81 84
82 // Number of bytes reserved for public flags in the packet header. 85 // Number of bytes reserved for public flags in the packet header.
83 const size_t kPublicFlagsSize = 1; 86 const size_t kPublicFlagsSize = 1;
84 // Number of bytes reserved for version number in the packet header. 87 // Number of bytes reserved for version number in the packet header.
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 SequenceNumberList* all_transmissions; 1087 SequenceNumberList* all_transmissions;
1085 // In flight packets have not been abandoned or lost. 1088 // In flight packets have not been abandoned or lost.
1086 bool in_flight; 1089 bool in_flight;
1087 // True if the packet can never be acked, so it can be removed. 1090 // True if the packet can never be acked, so it can be removed.
1088 bool is_unackable; 1091 bool is_unackable;
1089 }; 1092 };
1090 1093
1091 } // namespace net 1094 } // namespace net
1092 1095
1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1096 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698