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 <vector> | 10 #include <vector> |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 // When a stream is closed locally, it may not yet know how many bytes the | 274 // When a stream is closed locally, it may not yet know how many bytes the |
275 // peer sent on that stream. | 275 // peer sent on that stream. |
276 // When this data arrives (via stream frame w. FIN, or RST) this method | 276 // When this data arrives (via stream frame w. FIN, or RST) this method |
277 // is called, and correctly updates the connection level flow controller. | 277 // is called, and correctly updates the connection level flow controller. |
278 void UpdateFlowControlOnFinalReceivedByteOffset( | 278 void UpdateFlowControlOnFinalReceivedByteOffset( |
279 QuicStreamId id, QuicStreamOffset final_byte_offset); | 279 QuicStreamId id, QuicStreamOffset final_byte_offset); |
280 | 280 |
281 // Called in OnConfigNegotiated when we receive a new stream level flow | 281 // Called in OnConfigNegotiated when we receive a new stream level flow |
282 // control window in a negotiated config. Closes the connection if invalid. | 282 // control window in a negotiated config. Closes the connection if invalid. |
283 void OnNewStreamFlowControlWindow(uint32 new_window); | 283 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window); |
284 | 284 |
285 // Called in OnConfigNegotiated when we receive a new session level flow | 285 // Called in OnConfigNegotiated when we receive a new session level flow |
286 // control window in a negotiated config. Closes the connection if invalid. | 286 // control window in a negotiated config. Closes the connection if invalid. |
287 void OnNewSessionFlowControlWindow(uint32 new_window); | 287 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); |
288 | 288 |
289 // Keep track of highest received byte offset of locally closed streams, while | 289 // Keep track of highest received byte offset of locally closed streams, while |
290 // waiting for a definitive final highest offset from the peer. | 290 // waiting for a definitive final highest offset from the peer. |
291 std::map<QuicStreamId, QuicStreamOffset> | 291 std::map<QuicStreamId, QuicStreamOffset> |
292 locally_closed_streams_highest_offset_; | 292 locally_closed_streams_highest_offset_; |
293 | 293 |
294 scoped_ptr<QuicConnection> connection_; | 294 scoped_ptr<QuicConnection> connection_; |
295 | 295 |
296 // A shim to stand between the connection and the session, to handle stream | 296 // A shim to stand between the connection and the session, to handle stream |
297 // deletions. | 297 // deletions. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 333 |
334 // True if this is a secure (HTTPS) QUIC session. | 334 // True if this is a secure (HTTPS) QUIC session. |
335 bool is_secure_; | 335 bool is_secure_; |
336 | 336 |
337 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 337 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
338 }; | 338 }; |
339 | 339 |
340 } // namespace net | 340 } // namespace net |
341 | 341 |
342 #endif // NET_QUIC_QUIC_SESSION_H_ | 342 #endif // NET_QUIC_QUIC_SESSION_H_ |
OLD | NEW |