| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 HANDSHAKE_CONFIRMED, | 52 HANDSHAKE_CONFIRMED, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 QuicSession(QuicConnection* connection, const QuicConfig& config); | 55 QuicSession(QuicConnection* connection, const QuicConfig& config); |
| 56 void InitializeSession(); | 56 void InitializeSession(); |
| 57 | 57 |
| 58 virtual ~QuicSession(); | 58 virtual ~QuicSession(); |
| 59 | 59 |
| 60 // QuicConnectionVisitorInterface methods: | 60 // QuicConnectionVisitorInterface methods: |
| 61 virtual void OnStreamFrames( | 61 virtual void OnStreamFrames( |
| 62 const std::vector<QuicStreamFrame>& frames) OVERRIDE; | 62 const std::vector<QuicStreamFrame>& frames) override; |
| 63 virtual void OnRstStream(const QuicRstStreamFrame& frame) OVERRIDE; | 63 virtual void OnRstStream(const QuicRstStreamFrame& frame) override; |
| 64 virtual void OnGoAway(const QuicGoAwayFrame& frame) OVERRIDE; | 64 virtual void OnGoAway(const QuicGoAwayFrame& frame) override; |
| 65 virtual void OnWindowUpdateFrames( | 65 virtual void OnWindowUpdateFrames( |
| 66 const std::vector<QuicWindowUpdateFrame>& frames) OVERRIDE; | 66 const std::vector<QuicWindowUpdateFrame>& frames) override; |
| 67 virtual void OnBlockedFrames( | 67 virtual void OnBlockedFrames( |
| 68 const std::vector<QuicBlockedFrame>& frames) OVERRIDE; | 68 const std::vector<QuicBlockedFrame>& frames) override; |
| 69 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 69 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; |
| 70 virtual void OnWriteBlocked() OVERRIDE {} | 70 virtual void OnWriteBlocked() override {} |
| 71 virtual void OnSuccessfulVersionNegotiation( | 71 virtual void OnSuccessfulVersionNegotiation( |
| 72 const QuicVersion& version) OVERRIDE; | 72 const QuicVersion& version) override; |
| 73 virtual void OnCanWrite() OVERRIDE; | 73 virtual void OnCanWrite() override; |
| 74 virtual void OnCongestionWindowChange(QuicTime now) OVERRIDE {} | 74 virtual void OnCongestionWindowChange(QuicTime now) override {} |
| 75 virtual bool WillingAndAbleToWrite() const OVERRIDE; | 75 virtual bool WillingAndAbleToWrite() const override; |
| 76 virtual bool HasPendingHandshake() const OVERRIDE; | 76 virtual bool HasPendingHandshake() const override; |
| 77 virtual bool HasOpenDataStreams() const OVERRIDE; | 77 virtual bool HasOpenDataStreams() const override; |
| 78 | 78 |
| 79 // Called by the headers stream when headers have been received for a stream. | 79 // Called by the headers stream when headers have been received for a stream. |
| 80 virtual void OnStreamHeaders(QuicStreamId stream_id, | 80 virtual void OnStreamHeaders(QuicStreamId stream_id, |
| 81 base::StringPiece headers_data); | 81 base::StringPiece headers_data); |
| 82 // Called by the headers stream when headers with a priority have been | 82 // Called by the headers stream when headers with a priority have been |
| 83 // received for this stream. This method will only be called for server | 83 // received for this stream. This method will only be called for server |
| 84 // streams. | 84 // streams. |
| 85 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, | 85 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, |
| 86 QuicPriority priority); | 86 QuicPriority priority); |
| 87 // Called by the headers stream when headers have been completely received | 87 // Called by the headers stream when headers have been completely received |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 // Used for session level flow control. | 323 // Used for session level flow control. |
| 324 scoped_ptr<QuicFlowController> flow_controller_; | 324 scoped_ptr<QuicFlowController> flow_controller_; |
| 325 | 325 |
| 326 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 326 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 } // namespace net | 329 } // namespace net |
| 330 | 330 |
| 331 #endif // NET_QUIC_QUIC_SESSION_H_ | 331 #endif // NET_QUIC_QUIC_SESSION_H_ |
| OLD | NEW |