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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual size_t GetNumActiveStreams() const; | 161 virtual size_t GetNumActiveStreams() const; |
162 | 162 |
163 // Returns the number of "available" streams, the stream ids less than | 163 // Returns the number of "available" streams, the stream ids less than |
164 // largest_peer_created_stream_id_ that have not yet been opened. | 164 // largest_peer_created_stream_id_ that have not yet been opened. |
165 virtual size_t GetNumAvailableStreams() const; | 165 virtual size_t GetNumAvailableStreams() const; |
166 | 166 |
167 // Add the stream to the session's write-blocked list because it is blocked by | 167 // Add the stream to the session's write-blocked list because it is blocked by |
168 // connection-level flow control but not by its own stream-level flow control. | 168 // connection-level flow control but not by its own stream-level flow control. |
169 // The stream will be given a chance to write when a connection-level | 169 // The stream will be given a chance to write when a connection-level |
170 // WINDOW_UPDATE arrives. | 170 // WINDOW_UPDATE arrives. |
171 void MarkConnectionLevelWriteBlocked(QuicStreamId id, QuicPriority priority); | 171 void MarkConnectionLevelWriteBlocked(QuicStreamId id, |
| 172 SpdyPriority priority); |
172 | 173 |
173 // Returns true if the session has data to be sent, either queued in the | 174 // Returns true if the session has data to be sent, either queued in the |
174 // connection, or in a write-blocked stream. | 175 // connection, or in a write-blocked stream. |
175 bool HasDataToWrite() const; | 176 bool HasDataToWrite() const; |
176 | 177 |
177 bool goaway_sent() const; | 178 bool goaway_sent() const; |
178 | 179 |
179 bool goaway_received() const; | 180 bool goaway_received() const; |
180 | 181 |
181 QuicErrorCode error() const { return error_; } | 182 QuicErrorCode error() const { return error_; } |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 // Indicate if there is pending data for the crypto stream. | 339 // Indicate if there is pending data for the crypto stream. |
339 bool has_pending_handshake_; | 340 bool has_pending_handshake_; |
340 | 341 |
341 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 342 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
342 }; | 343 }; |
343 | 344 |
344 } // namespace net | 345 } // namespace net |
345 | 346 |
346 #endif // NET_QUIC_QUIC_SESSION_H_ | 347 #endif // NET_QUIC_QUIC_SESSION_H_ |
OLD | NEW |