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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 QuicPacketCreator::Options* options() { return connection()->options(); } | 164 QuicPacketCreator::Options* options() { return connection()->options(); } |
165 | 165 |
166 // Returns the number of currently open streams, including those which have | 166 // Returns the number of currently open streams, including those which have |
167 // been implicitly created. | 167 // been implicitly created. |
168 virtual size_t GetNumOpenStreams() const; | 168 virtual size_t GetNumOpenStreams() const; |
169 | 169 |
170 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority); | 170 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority); |
171 | 171 |
172 // Returns true if the session has data to be sent, either queued in the | 172 // Returns true if the session has data to be sent, either queued in the |
173 // connection, or in a write-blocked stream. | 173 // connection, or in a write-blocked stream. |
174 bool HasQueuedData() const; | 174 bool HasDataToWrite() const; |
175 | 175 |
176 // Marks that |stream_id| is blocked waiting to decompress the | 176 // Marks that |stream_id| is blocked waiting to decompress the |
177 // headers identified by |decompression_id|. | 177 // headers identified by |decompression_id|. |
178 void MarkDecompressionBlocked(QuicHeaderId decompression_id, | 178 void MarkDecompressionBlocked(QuicHeaderId decompression_id, |
179 QuicStreamId stream_id); | 179 QuicStreamId stream_id); |
180 | 180 |
181 bool goaway_received() const { | 181 bool goaway_received() const { |
182 return goaway_received_; | 182 return goaway_received_; |
183 } | 183 } |
184 | 184 |
(...skipping 136 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 |