| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |