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

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

Issue 339803004: Introduce QUIC_VERSION_20: allowing endpoints to set different (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_config.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) 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 uint32 ReceivedInitialCongestionWindow() const; 301 uint32 ReceivedInitialCongestionWindow() const;
302 302
303 // Sets an estimated initial round trip time in us. 303 // Sets an estimated initial round trip time in us.
304 void SetInitialRoundTripTimeUsToSend(size_t rtt_us); 304 void SetInitialRoundTripTimeUsToSend(size_t rtt_us);
305 305
306 bool HasReceivedInitialRoundTripTimeUs() const; 306 bool HasReceivedInitialRoundTripTimeUs() const;
307 307
308 uint32 ReceivedInitialRoundTripTimeUs() const; 308 uint32 ReceivedInitialRoundTripTimeUs() const;
309 309
310 // Sets an initial flow control window size to transmit to the peer. 310 // TODO(rjshade): Remove all InitialFlowControlWindow methods when removing
311 // QUIC_VERSION_19.
312 // Sets an initial stream flow control window size to transmit to the peer.
311 void SetInitialFlowControlWindowToSend(uint32 window_bytes); 313 void SetInitialFlowControlWindowToSend(uint32 window_bytes);
312 314
313 uint32 GetInitialFlowControlWindowToSend() const; 315 uint32 GetInitialFlowControlWindowToSend() const;
314 316
315 bool HasReceivedInitialFlowControlWindowBytes() const; 317 bool HasReceivedInitialFlowControlWindowBytes() const;
316 318
317 uint32 ReceivedInitialFlowControlWindowBytes() const; 319 uint32 ReceivedInitialFlowControlWindowBytes() const;
318 320
321 // Sets an initial stream flow control window size to transmit to the peer.
322 void SetInitialStreamFlowControlWindowToSend(uint32 window_bytes);
323
324 uint32 GetInitialStreamFlowControlWindowToSend() const;
325
326 bool HasReceivedInitialStreamFlowControlWindowBytes() const;
327
328 uint32 ReceivedInitialStreamFlowControlWindowBytes() const;
329
330 // Sets an initial session flow control window size to transmit to the peer.
331 void SetInitialSessionFlowControlWindowToSend(uint32 window_bytes);
332
333 uint32 GetInitialSessionFlowControlWindowToSend() const;
334
335 bool HasReceivedInitialSessionFlowControlWindowBytes() const;
336
337 uint32 ReceivedInitialSessionFlowControlWindowBytes() const;
338
319 bool negotiated(); 339 bool negotiated();
320 340
321 // SetDefaults sets the members to sensible, default values. 341 // SetDefaults sets the members to sensible, default values.
322 void SetDefaults(); 342 void SetDefaults();
323 343
324 // Enabled pacing. 344 // Enabled pacing.
325 void EnablePacing(bool enable_pacing); 345 void EnablePacing(bool enable_pacing);
326 346
327 // ToHandshakeMessage serialises the settings in this object as a series of 347 // ToHandshakeMessage serialises the settings in this object as a series of
328 // tags /value pairs and adds them to |out|. 348 // tags /value pairs and adds them to |out|.
(...skipping 20 matching lines...) Expand all
349 QuicNegotiableUint32 keepalive_timeout_seconds_; 369 QuicNegotiableUint32 keepalive_timeout_seconds_;
350 // Maximum number of streams that the connection can support. 370 // Maximum number of streams that the connection can support.
351 QuicNegotiableUint32 max_streams_per_connection_; 371 QuicNegotiableUint32 max_streams_per_connection_;
352 // Maximum time till the session can be alive before crypto handshake is 372 // Maximum time till the session can be alive before crypto handshake is
353 // finished. (Not negotiated). 373 // finished. (Not negotiated).
354 QuicTime::Delta max_time_before_crypto_handshake_; 374 QuicTime::Delta max_time_before_crypto_handshake_;
355 // Initial congestion window in packets. 375 // Initial congestion window in packets.
356 QuicFixedUint32 initial_congestion_window_; 376 QuicFixedUint32 initial_congestion_window_;
357 // Initial round trip time estimate in microseconds. 377 // Initial round trip time estimate in microseconds.
358 QuicFixedUint32 initial_round_trip_time_us_; 378 QuicFixedUint32 initial_round_trip_time_us_;
379
380 // TODO(rjshade): Remove when removing QUIC_VERSION_19.
359 // Initial flow control receive window in bytes. 381 // Initial flow control receive window in bytes.
360 QuicFixedUint32 initial_flow_control_window_bytes_; 382 QuicFixedUint32 initial_flow_control_window_bytes_;
383
384 // Initial stream flow control receive window in bytes.
385 QuicFixedUint32 initial_stream_flow_control_window_bytes_;
386 // Initial session flow control receive window in bytes.
387 QuicFixedUint32 initial_session_flow_control_window_bytes_;
361 }; 388 };
362 389
363 } // namespace net 390 } // namespace net
364 391
365 #endif // NET_QUIC_QUIC_CONFIG_H_ 392 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698