| 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 <map> | 10 #include <map> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window); | 289 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window); |
| 290 | 290 |
| 291 // Called in OnConfigNegotiated when we receive a new connection level flow | 291 // Called in OnConfigNegotiated when we receive a new connection level flow |
| 292 // control window in a negotiated config. Closes the connection if invalid. | 292 // control window in a negotiated config. Closes the connection if invalid. |
| 293 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); | 293 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); |
| 294 | 294 |
| 295 // Called in OnConfigNegotiated when auto-tuning is enabled for flow | 295 // Called in OnConfigNegotiated when auto-tuning is enabled for flow |
| 296 // control receive windows. | 296 // control receive windows. |
| 297 void EnableAutoTuneReceiveWindow(); | 297 void EnableAutoTuneReceiveWindow(); |
| 298 | 298 |
| 299 // Called in OnConfigNegotiated for finch trials to measure performance of |
| 300 // starting with smaller flow control receive windows and auto-tuning. |
| 301 void AdjustInitialFlowControlWindows(size_t stream_window); |
| 302 |
| 299 // TODO(rtenneti): Temporary while investigating crbug.com/473893 | 303 // TODO(rtenneti): Temporary while investigating crbug.com/473893 |
| 300 void CrashIfInvalid() const; | 304 void CrashIfInvalid() const; |
| 301 | 305 |
| 302 // Keep track of highest received byte offset of locally closed streams, while | 306 // Keep track of highest received byte offset of locally closed streams, while |
| 303 // waiting for a definitive final highest offset from the peer. | 307 // waiting for a definitive final highest offset from the peer. |
| 304 std::map<QuicStreamId, QuicStreamOffset> | 308 std::map<QuicStreamId, QuicStreamOffset> |
| 305 locally_closed_streams_highest_offset_; | 309 locally_closed_streams_highest_offset_; |
| 306 | 310 |
| 307 scoped_ptr<QuicConnection> connection_; | 311 scoped_ptr<QuicConnection> connection_; |
| 308 | 312 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 Liveness liveness_ = ALIVE; | 357 Liveness liveness_ = ALIVE; |
| 354 base::debug::StackTrace stack_trace_; | 358 base::debug::StackTrace stack_trace_; |
| 355 #endif | 359 #endif |
| 356 | 360 |
| 357 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 361 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| 358 }; | 362 }; |
| 359 | 363 |
| 360 } // namespace net | 364 } // namespace net |
| 361 | 365 |
| 362 #endif // NET_QUIC_QUIC_SESSION_H_ | 366 #endif // NET_QUIC_QUIC_SESSION_H_ |
| OLD | NEW |