| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 HANDSHAKE_CONFIRMED, | 53 HANDSHAKE_CONFIRMED, |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 QuicSession(QuicConnection* connection, const QuicConfig& config); | 56 QuicSession(QuicConnection* connection, const QuicConfig& config); |
| 57 | 57 |
| 58 ~QuicSession() override; | 58 ~QuicSession() override; |
| 59 | 59 |
| 60 virtual void Initialize(); | 60 virtual void Initialize(); |
| 61 | 61 |
| 62 // QuicConnectionVisitorInterface methods: | 62 // QuicConnectionVisitorInterface methods: |
| 63 void OnStreamFrames(const std::vector<QuicStreamFrame>& frames) override; | 63 void OnStreamFrame(const QuicStreamFrame& frame) override; |
| 64 void OnRstStream(const QuicRstStreamFrame& frame) override; | 64 void OnRstStream(const QuicRstStreamFrame& frame) override; |
| 65 void OnGoAway(const QuicGoAwayFrame& frame) override; | 65 void OnGoAway(const QuicGoAwayFrame& frame) override; |
| 66 void OnWindowUpdateFrames( | 66 void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; |
| 67 const std::vector<QuicWindowUpdateFrame>& frames) override; | 67 void OnBlockedFrame(const QuicBlockedFrame& frame) override; |
| 68 void OnBlockedFrames(const std::vector<QuicBlockedFrame>& frames) override; | |
| 69 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; | 68 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; |
| 70 void OnWriteBlocked() override {} | 69 void OnWriteBlocked() override {} |
| 71 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; | 70 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; |
| 72 void OnCanWrite() override; | 71 void OnCanWrite() override; |
| 73 void OnCongestionWindowChange(QuicTime now) override {} | 72 void OnCongestionWindowChange(QuicTime now) override {} |
| 74 bool WillingAndAbleToWrite() const override; | 73 bool WillingAndAbleToWrite() const override; |
| 75 bool HasPendingHandshake() const override; | 74 bool HasPendingHandshake() const override; |
| 76 bool HasOpenDynamicStreams() const override; | 75 bool HasOpenDynamicStreams() const override; |
| 77 | 76 |
| 78 // Called by streams when they want to write data to the peer. | 77 // Called by streams when they want to write data to the peer. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 320 |
| 322 // Indicate if there is pending data for the crypto stream. | 321 // Indicate if there is pending data for the crypto stream. |
| 323 bool has_pending_handshake_; | 322 bool has_pending_handshake_; |
| 324 | 323 |
| 325 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 324 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| 326 }; | 325 }; |
| 327 | 326 |
| 328 } // namespace net | 327 } // namespace net |
| 329 | 328 |
| 330 #endif // NET_QUIC_QUIC_SESSION_H_ | 329 #endif // NET_QUIC_QUIC_SESSION_H_ |
| OLD | NEW |