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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CONFIG_H_ 5 #ifndef NET_QUIC_QUIC_CONFIG_H_
6 #define NET_QUIC_QUIC_CONFIG_H_ 6 #define NET_QUIC_QUIC_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 QuicTime::Delta idle_connection_state_lifetime() const; 148 QuicTime::Delta idle_connection_state_lifetime() const;
149 149
150 QuicTime::Delta keepalive_timeout() const; 150 QuicTime::Delta keepalive_timeout() const;
151 151
152 void set_max_streams_per_connection(size_t max_streams, 152 void set_max_streams_per_connection(size_t max_streams,
153 size_t default_streams); 153 size_t default_streams);
154 154
155 uint32 max_streams_per_connection() const; 155 uint32 max_streams_per_connection() const;
156 156
157 void set_max_time_before_crypto_handshake(
158 QuicTime::Delta max_time_before_crypto_handshake);
159
160 QuicTime::Delta max_time_before_crypto_handshake() const;
161
157 bool negotiated(); 162 bool negotiated();
158 163
159 // SetDefaults sets the members to sensible, default values. 164 // SetDefaults sets the members to sensible, default values.
160 void SetDefaults(); 165 void SetDefaults();
161 166
162 // ToHandshakeMessage serializes the settings in this object as a series of 167 // ToHandshakeMessage serializes the settings in this object as a series of
163 // tags /value pairs and adds them to |out|. 168 // tags /value pairs and adds them to |out|.
164 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; 169 void ToHandshakeMessage(CryptoHandshakeMessage* out) const;
165 170
166 // Calls ProcessClientHello on each negotiable parameter. On failure returns 171 // Calls ProcessClientHello on each negotiable parameter. On failure returns
167 // the corresponding QuicErrorCode and sets detailed error in |error_details|. 172 // the corresponding QuicErrorCode and sets detailed error in |error_details|.
168 QuicErrorCode ProcessClientHello(const CryptoHandshakeMessage& client_hello, 173 QuicErrorCode ProcessClientHello(const CryptoHandshakeMessage& client_hello,
169 std::string* error_details); 174 std::string* error_details);
170 175
171 // Calls ProcessServerHello on each negotiable parameter. On failure returns 176 // Calls ProcessServerHello on each negotiable parameter. On failure returns
172 // the corresponding QuicErrorCode and sets detailed error in |error_details|. 177 // the corresponding QuicErrorCode and sets detailed error in |error_details|.
173 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello, 178 QuicErrorCode ProcessServerHello(const CryptoHandshakeMessage& server_hello,
174 std::string* error_details); 179 std::string* error_details);
175 180
176 private: 181 private:
177 // Congestion control feedback type. 182 // Congestion control feedback type.
178 QuicNegotiableTag congestion_control_; 183 QuicNegotiableTag congestion_control_;
179 // Idle connection state lifetime 184 // Idle connection state lifetime
180 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; 185 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_;
181 // Keepalive timeout, or 0 to turn off keepalive probes 186 // Keepalive timeout, or 0 to turn off keepalive probes
182 QuicNegotiableUint32 keepalive_timeout_seconds_; 187 QuicNegotiableUint32 keepalive_timeout_seconds_;
183 // Maximum number of streams that the connection can support. 188 // Maximum number of streams that the connection can support.
184 QuicNegotiableUint32 max_streams_per_connection_; 189 QuicNegotiableUint32 max_streams_per_connection_;
190 // Maximum time till the session can be alive before crypto handshake is
191 // finished. (Not negotiated).
192 QuicTime::Delta max_time_before_crypto_handshake_;
185 }; 193 };
186 194
187 } // namespace net 195 } // namespace net
188 196
189 #endif // NET_QUIC_QUIC_CONFIG_H_ 197 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698