| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } // namespace test | 43 } // namespace test |
| 44 | 44 |
| 45 class QuicSession; | 45 class QuicSession; |
| 46 | 46 |
| 47 class NET_EXPORT_PRIVATE ReliableQuicStream { | 47 class NET_EXPORT_PRIVATE ReliableQuicStream { |
| 48 public: | 48 public: |
| 49 ReliableQuicStream(QuicStreamId id, QuicSession* session); | 49 ReliableQuicStream(QuicStreamId id, QuicSession* session); |
| 50 | 50 |
| 51 virtual ~ReliableQuicStream(); | 51 virtual ~ReliableQuicStream(); |
| 52 | 52 |
| 53 // Sets |fec_policy_| parameter from |session_|'s config. | 53 // Not in use currently. |
| 54 void SetFromConfig(); | 54 void SetFromConfig(); |
| 55 | 55 |
| 56 // Called by the session when a (potentially duplicate) stream frame has been | 56 // Called by the session when a (potentially duplicate) stream frame has been |
| 57 // received for this stream. | 57 // received for this stream. |
| 58 virtual void OnStreamFrame(const QuicStreamFrame& frame); | 58 virtual void OnStreamFrame(const QuicStreamFrame& frame); |
| 59 | 59 |
| 60 // Called by the session when the connection becomes writeable to allow the | 60 // Called by the session when the connection becomes writeable to allow the |
| 61 // stream to write any pending data. | 61 // stream to write any pending data. |
| 62 virtual void OnCanWrite(); | 62 virtual void OnCanWrite(); |
| 63 | 63 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // connection level flow control limits (but are stream level flow control | 294 // connection level flow control limits (but are stream level flow control |
| 295 // limited). | 295 // limited). |
| 296 bool stream_contributes_to_connection_flow_control_; | 296 bool stream_contributes_to_connection_flow_control_; |
| 297 | 297 |
| 298 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); | 298 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace net | 301 } // namespace net |
| 302 | 302 |
| 303 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 303 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
| OLD | NEW |