| 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 // The base class for client/server reliable streams. | 5 // The base class for client/server reliable streams. |
| 6 | 6 |
| 7 // It does not contain the entire interface needed by an application to interact | 7 // It does not contain the entire interface needed by an application to interact |
| 8 // with a QUIC stream. Some parts of the interface must be obtained by | 8 // with a QUIC stream. Some parts of the interface must be obtained by |
| 9 // accessing the owning session object. A subclass of ReliableQuicStream | 9 // accessing the owning session object. A subclass of ReliableQuicStream |
| 10 // connects the object and the application that generates and consumes the data | 10 // connects the object and the application that generates and consumes the data |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 virtual void Reset(QuicRstStreamErrorCode error); | 86 virtual void Reset(QuicRstStreamErrorCode error); |
| 87 | 87 |
| 88 // Called by the subclass or the sequencer to close the entire connection from | 88 // Called by the subclass or the sequencer to close the entire connection from |
| 89 // this end. | 89 // this end. |
| 90 virtual void CloseConnection(QuicErrorCode error); | 90 virtual void CloseConnection(QuicErrorCode error); |
| 91 virtual void CloseConnectionWithDetails(QuicErrorCode error, | 91 virtual void CloseConnectionWithDetails(QuicErrorCode error, |
| 92 const std::string& details); | 92 const std::string& details); |
| 93 | 93 |
| 94 // Returns the effective priority for the stream. This value may change | 94 // Returns the effective priority for the stream. This value may change |
| 95 // during the life of the stream. | 95 // during the life of the stream. |
| 96 virtual QuicPriority EffectivePriority() const = 0; | 96 virtual QuicPriority Priority() const = 0; |
| 97 | 97 |
| 98 QuicStreamId id() const { return id_; } | 98 QuicStreamId id() const { return id_; } |
| 99 | 99 |
| 100 QuicRstStreamErrorCode stream_error() const { return stream_error_; } | 100 QuicRstStreamErrorCode stream_error() const { return stream_error_; } |
| 101 QuicErrorCode connection_error() const { return connection_error_; } | 101 QuicErrorCode connection_error() const { return connection_error_; } |
| 102 | 102 |
| 103 bool reading_stopped() const { | 103 bool reading_stopped() const { |
| 104 return sequencer_.ignore_read_data() || read_side_closed_; | 104 return sequencer_.ignore_read_data() || read_side_closed_; |
| 105 } | 105 } |
| 106 bool write_side_closed() const { return write_side_closed_; } | 106 bool write_side_closed() const { return write_side_closed_; } |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // connection level flow control limits (but are stream level flow control | 300 // connection level flow control limits (but are stream level flow control |
| 301 // limited). | 301 // limited). |
| 302 bool stream_contributes_to_connection_flow_control_; | 302 bool stream_contributes_to_connection_flow_control_; |
| 303 | 303 |
| 304 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); | 304 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 } // namespace net | 307 } // namespace net |
| 308 | 308 |
| 309 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 309 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
| OLD | NEW |