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

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

Issue 2181813002: deprecate FLAGS_quic_auto_tune_receive_window, FLAGS_quic_enable_autotune_by_defau… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@128178269
Patch Set: Created 4 years, 4 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_flow_controller_test.cc ('k') | net/quic/quic_session.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 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SESSION_H_
8 #define NET_QUIC_QUIC_SESSION_H_ 8 #define NET_QUIC_QUIC_SESSION_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 friend class test::QuicSessionPeer; 340 friend class test::QuicSessionPeer;
341 341
342 // Called in OnConfigNegotiated when we receive a new stream level flow 342 // Called in OnConfigNegotiated when we receive a new stream level flow
343 // control window in a negotiated config. Closes the connection if invalid. 343 // control window in a negotiated config. Closes the connection if invalid.
344 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window); 344 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window);
345 345
346 // Called in OnConfigNegotiated when we receive a new connection level flow 346 // Called in OnConfigNegotiated when we receive a new connection level flow
347 // control window in a negotiated config. Closes the connection if invalid. 347 // control window in a negotiated config. Closes the connection if invalid.
348 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); 348 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window);
349 349
350 // Called in OnConfigNegotiated when auto-tuning is enabled for flow
351 // control receive windows.
352 void EnableAutoTuneReceiveWindow();
353
354 // Called in OnConfigNegotiated for finch trials to measure performance of
355 // starting with smaller flow control receive windows and auto-tuning.
356 void AdjustInitialFlowControlWindows(size_t stream_window);
357
358 // Keep track of highest received byte offset of locally closed streams, while 350 // Keep track of highest received byte offset of locally closed streams, while
359 // waiting for a definitive final highest offset from the peer. 351 // waiting for a definitive final highest offset from the peer.
360 std::map<QuicStreamId, QuicStreamOffset> 352 std::map<QuicStreamId, QuicStreamOffset>
361 locally_closed_streams_highest_offset_; 353 locally_closed_streams_highest_offset_;
362 354
363 std::unique_ptr<QuicConnection> connection_; 355 std::unique_ptr<QuicConnection> connection_;
364 356
365 std::vector<ReliableQuicStream*> closed_streams_; 357 std::vector<ReliableQuicStream*> closed_streams_;
366 358
367 QuicConfig config_; 359 QuicConfig config_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // The stream id which was last popped in OnCanWrite, or 0, if not under the 407 // The stream id which was last popped in OnCanWrite, or 0, if not under the
416 // call stack of OnCanWrite. 408 // call stack of OnCanWrite.
417 QuicStreamId currently_writing_stream_id_; 409 QuicStreamId currently_writing_stream_id_;
418 410
419 DISALLOW_COPY_AND_ASSIGN(QuicSession); 411 DISALLOW_COPY_AND_ASSIGN(QuicSession);
420 }; 412 };
421 413
422 } // namespace net 414 } // namespace net
423 415
424 #endif // NET_QUIC_QUIC_SESSION_H_ 416 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698