| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 // Return the reserved crypto stream. | 211 // Return the reserved crypto stream. |
| 212 virtual QuicCryptoStream* GetCryptoStream() = 0; | 212 virtual QuicCryptoStream* GetCryptoStream() = 0; |
| 213 | 213 |
| 214 // Adds 'stream' to the active stream map. | 214 // Adds 'stream' to the active stream map. |
| 215 virtual void ActivateStream(QuicDataStream* stream); | 215 virtual void ActivateStream(QuicDataStream* stream); |
| 216 | 216 |
| 217 // Returns the stream id for a new stream. | 217 // Returns the stream id for a new stream. |
| 218 QuicStreamId GetNextStreamId(); | 218 QuicStreamId GetNextStreamId(); |
| 219 | 219 |
| 220 QuicDataStream* GetIncomingReliableStream(QuicStreamId stream_id); | 220 QuicDataStream* GetIncomingDataStream(QuicStreamId stream_id); |
| 221 | 221 |
| 222 QuicDataStream* GetDataStream(const QuicStreamId stream_id); | 222 QuicDataStream* GetDataStream(const QuicStreamId stream_id); |
| 223 | 223 |
| 224 ReliableQuicStream* GetStream(const QuicStreamId stream_id); | 224 ReliableQuicStream* GetStream(const QuicStreamId stream_id); |
| 225 | 225 |
| 226 // This is called after every call other than OnConnectionClose from the | 226 // This is called after every call other than OnConnectionClose from the |
| 227 // QuicConnectionVisitor to allow post-processing once the work has been done. | 227 // QuicConnectionVisitor to allow post-processing once the work has been done. |
| 228 // In this case, it deletes streams given that it's safe to do so (no other | 228 // In this case, it deletes streams given that it's safe to do so (no other |
| 229 // operations are being done on the streams at this time) | 229 // operations are being done on the streams at this time) |
| 230 virtual void PostProcessAfterData(); | 230 virtual void PostProcessAfterData(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 // Indicate if there is pending data for the crypto stream. | 322 // Indicate if there is pending data for the crypto stream. |
| 323 bool has_pending_handshake_; | 323 bool has_pending_handshake_; |
| 324 | 324 |
| 325 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 325 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| 326 }; | 326 }; |
| 327 | 327 |
| 328 } // namespace net | 328 } // namespace net |
| 329 | 329 |
| 330 #endif // NET_QUIC_QUIC_SESSION_H_ | 330 #endif // NET_QUIC_QUIC_SESSION_H_ |
| OLD | NEW |