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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 bool goaway_sent() const { | 196 bool goaway_sent() const { |
197 return goaway_sent_; | 197 return goaway_sent_; |
198 } | 198 } |
199 | 199 |
200 // Gets the SSL connection information. | 200 // Gets the SSL connection information. |
201 virtual bool GetSSLInfo(SSLInfo* ssl_info) const; | 201 virtual bool GetSSLInfo(SSLInfo* ssl_info) const; |
202 | 202 |
203 QuicErrorCode error() const { return error_; } | 203 QuicErrorCode error() const { return error_; } |
204 | 204 |
205 bool is_server() const { return connection_->is_server(); } | 205 Perspective perspective() const { return connection_->perspective(); } |
206 | 206 |
207 QuicFlowController* flow_controller() { return flow_controller_.get(); } | 207 QuicFlowController* flow_controller() { return flow_controller_.get(); } |
208 | 208 |
209 // Returns true if connection is flow controller blocked. | 209 // Returns true if connection is flow controller blocked. |
210 bool IsConnectionFlowControlBlocked() const; | 210 bool IsConnectionFlowControlBlocked() const; |
211 | 211 |
212 // Returns true if any stream is flow controller blocked. | 212 // Returns true if any stream is flow controller blocked. |
213 bool IsStreamFlowControlBlocked(); | 213 bool IsStreamFlowControlBlocked(); |
214 | 214 |
215 // Returns true if this is a secure QUIC session. | 215 // Returns true if this is a secure QUIC session. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 336 |
337 // Indicate if there is pending data for the crypto stream. | 337 // Indicate if there is pending data for the crypto stream. |
338 bool has_pending_handshake_; | 338 bool has_pending_handshake_; |
339 | 339 |
340 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 340 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
341 }; | 341 }; |
342 | 342 |
343 } // namespace net | 343 } // namespace net |
344 | 344 |
345 #endif // NET_QUIC_QUIC_SESSION_H_ | 345 #endif // NET_QUIC_QUIC_SESSION_H_ |
OLD | NEW |