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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool WillingAndAbleToWrite() const OVERRIDE; | 75 virtual bool WillingAndAbleToWrite() const OVERRIDE; |
75 virtual bool HasPendingHandshake() const OVERRIDE; | 76 virtual bool HasPendingHandshake() const OVERRIDE; |
76 virtual bool HasOpenDataStreams() const OVERRIDE; | 77 virtual bool HasOpenDataStreams() const OVERRIDE; |
77 | 78 |
78 // 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. |
79 virtual void OnStreamHeaders(QuicStreamId stream_id, | 80 virtual void OnStreamHeaders(QuicStreamId stream_id, |
80 base::StringPiece headers_data); | 81 base::StringPiece headers_data); |
81 // 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 |
82 // 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 |
83 // streams. | 84 // streams. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 322 |
322 // Used for session level flow control. | 323 // Used for session level flow control. |
323 scoped_ptr<QuicFlowController> flow_controller_; | 324 scoped_ptr<QuicFlowController> flow_controller_; |
324 | 325 |
325 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 326 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
326 }; | 327 }; |
327 | 328 |
328 } // namespace net | 329 } // namespace net |
329 | 330 |
330 #endif // NET_QUIC_QUIC_SESSION_H_ | 331 #endif // NET_QUIC_QUIC_SESSION_H_ |
OLD | NEW |