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

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

Issue 357573004: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase with TOT 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/quic_crypto_server_config.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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 class NET_EXPORT_PRIVATE QuicConfig { 256 class NET_EXPORT_PRIVATE QuicConfig {
257 public: 257 public:
258 QuicConfig(); 258 QuicConfig();
259 ~QuicConfig(); 259 ~QuicConfig();
260 260
261 void set_congestion_feedback(const QuicTagVector& congestion_feedback, 261 void set_congestion_feedback(const QuicTagVector& congestion_feedback,
262 QuicTag default_congestion_feedback); 262 QuicTag default_congestion_feedback);
263 263
264 QuicTag congestion_feedback() const; 264 QuicTag congestion_feedback() const;
265 265
266 void SetCongestionOptionsToSend(const QuicTagVector& congestion_options); 266 void SetConnectionOptionsToSend(const QuicTagVector& connection_options);
267 267
268 bool HasReceivedCongestionOptions() const; 268 bool HasReceivedConnectionOptions() const;
269 269
270 QuicTagVector ReceivedCongestionOptions() const; 270 QuicTagVector ReceivedConnectionOptions() const;
271 271
272 void SetLossDetectionToSend(QuicTag loss_detection); 272 void SetLossDetectionToSend(QuicTag loss_detection);
273 273
274 bool HasReceivedLossDetection() const; 274 bool HasReceivedLossDetection() const;
275 275
276 QuicTag ReceivedLossDetection() const; 276 QuicTag ReceivedLossDetection() const;
277 277
278 void set_idle_connection_state_lifetime( 278 void set_idle_connection_state_lifetime(
279 QuicTime::Delta max_idle_connection_state_lifetime, 279 QuicTime::Delta max_idle_connection_state_lifetime,
280 QuicTime::Delta default_idle_conection_state_lifetime); 280 QuicTime::Delta default_idle_conection_state_lifetime);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, 353 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello,
354 HelloType hello_type, 354 HelloType hello_type,
355 std::string* error_details); 355 std::string* error_details);
356 356
357 private: 357 private:
358 friend class test::QuicConfigPeer; 358 friend class test::QuicConfigPeer;
359 359
360 // Congestion control feedback type. 360 // Congestion control feedback type.
361 QuicNegotiableTag congestion_feedback_; 361 QuicNegotiableTag congestion_feedback_;
362 // Congestion control option. 362 // Congestion control option.
363 QuicFixedTagVector congestion_options_; 363 QuicFixedTagVector connection_options_;
364 // Loss detection feedback type. 364 // Loss detection feedback type.
365 QuicFixedTag loss_detection_; 365 QuicFixedTag loss_detection_;
366 // Idle connection state lifetime 366 // Idle connection state lifetime
367 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; 367 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_;
368 // Keepalive timeout, or 0 to turn off keepalive probes 368 // Keepalive timeout, or 0 to turn off keepalive probes
369 QuicNegotiableUint32 keepalive_timeout_seconds_; 369 QuicNegotiableUint32 keepalive_timeout_seconds_;
370 // Maximum number of streams that the connection can support. 370 // Maximum number of streams that the connection can support.
371 QuicNegotiableUint32 max_streams_per_connection_; 371 QuicNegotiableUint32 max_streams_per_connection_;
372 // 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
373 // finished. (Not negotiated). 373 // finished. (Not negotiated).
374 QuicTime::Delta max_time_before_crypto_handshake_; 374 QuicTime::Delta max_time_before_crypto_handshake_;
375 // Initial congestion window in packets. 375 // Initial congestion window in packets.
376 QuicFixedUint32 initial_congestion_window_; 376 QuicFixedUint32 initial_congestion_window_;
377 // Initial round trip time estimate in microseconds. 377 // Initial round trip time estimate in microseconds.
378 QuicFixedUint32 initial_round_trip_time_us_; 378 QuicFixedUint32 initial_round_trip_time_us_;
379 379
380 // TODO(rjshade): Remove when removing QUIC_VERSION_19. 380 // TODO(rjshade): Remove when removing QUIC_VERSION_19.
381 // Initial flow control receive window in bytes. 381 // Initial flow control receive window in bytes.
382 QuicFixedUint32 initial_flow_control_window_bytes_; 382 QuicFixedUint32 initial_flow_control_window_bytes_;
383 383
384 // Initial stream flow control receive window in bytes. 384 // Initial stream flow control receive window in bytes.
385 QuicFixedUint32 initial_stream_flow_control_window_bytes_; 385 QuicFixedUint32 initial_stream_flow_control_window_bytes_;
386 // Initial session flow control receive window in bytes. 386 // Initial session flow control receive window in bytes.
387 QuicFixedUint32 initial_session_flow_control_window_bytes_; 387 QuicFixedUint32 initial_session_flow_control_window_bytes_;
388 }; 388 };
389 389
390 } // namespace net 390 } // namespace net
391 391
392 #endif // NET_QUIC_QUIC_CONFIG_H_ 392 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698