| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const QuicConfig& config); | 58 const QuicConfig& config); |
| 59 | 59 |
| 60 virtual ~QuicSession(); | 60 virtual ~QuicSession(); |
| 61 | 61 |
| 62 // QuicConnectionVisitorInterface methods: | 62 // QuicConnectionVisitorInterface methods: |
| 63 virtual bool OnStreamFrames( | 63 virtual bool OnStreamFrames( |
| 64 const std::vector<QuicStreamFrame>& frames) OVERRIDE; | 64 const std::vector<QuicStreamFrame>& frames) OVERRIDE; |
| 65 virtual void OnRstStream(const QuicRstStreamFrame& frame) OVERRIDE; | 65 virtual void OnRstStream(const QuicRstStreamFrame& frame) OVERRIDE; |
| 66 virtual void OnGoAway(const QuicGoAwayFrame& frame) OVERRIDE; | 66 virtual void OnGoAway(const QuicGoAwayFrame& frame) OVERRIDE; |
| 67 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 67 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
| 68 virtual void OnWriteBlocked() OVERRIDE {} |
| 68 virtual void OnSuccessfulVersionNegotiation( | 69 virtual void OnSuccessfulVersionNegotiation( |
| 69 const QuicVersion& version) OVERRIDE {} | 70 const QuicVersion& version) OVERRIDE {} |
| 70 virtual void OnConfigNegotiated() OVERRIDE; | 71 virtual void OnConfigNegotiated() OVERRIDE; |
| 71 // Not needed for HTTP. | |
| 72 virtual bool OnCanWrite() OVERRIDE; | 72 virtual bool OnCanWrite() OVERRIDE; |
| 73 virtual bool HasPendingHandshake() const OVERRIDE; | 73 virtual bool HasPendingHandshake() const OVERRIDE; |
| 74 | 74 |
| 75 // Called by the headers stream when headers have been received for a stream. | 75 // Called by the headers stream when headers have been received for a stream. |
| 76 virtual void OnStreamHeaders(QuicStreamId stream_id, | 76 virtual void OnStreamHeaders(QuicStreamId stream_id, |
| 77 base::StringPiece headers_data); | 77 base::StringPiece headers_data); |
| 78 // Called by the headers stream when headers with a priority have been | 78 // Called by the headers stream when headers with a priority have been |
| 79 // received for this stream. This method will only be called for server | 79 // received for this stream. This method will only be called for server |
| 80 // streams. | 80 // streams. |
| 81 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, | 81 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, |
| (...skipping 239 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 |