| 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 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 7 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
| 8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
| 9 | 9 |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool HasBufferedData() const; | 154 bool HasBufferedData() const; |
| 155 | 155 |
| 156 bool fin_buffered() const { return fin_buffered_; } | 156 bool fin_buffered() const { return fin_buffered_; } |
| 157 | 157 |
| 158 const QuicSession* session() const { return session_; } | 158 const QuicSession* session() const { return session_; } |
| 159 QuicSession* session() { return session_; } | 159 QuicSession* session() { return session_; } |
| 160 | 160 |
| 161 const QuicStreamSequencer* sequencer() const { return &sequencer_; } | 161 const QuicStreamSequencer* sequencer() const { return &sequencer_; } |
| 162 QuicStreamSequencer* sequencer() { return &sequencer_; } | 162 QuicStreamSequencer* sequencer() { return &sequencer_; } |
| 163 | 163 |
| 164 // TODO(rjshade): Remove this method when removing QUIC_VERSION_20. | 164 // TODO(rjshade): Remove this method when removing QUIC_VERSION_19. |
| 165 void DisableFlowControl() { | 165 void DisableFlowControl() { |
| 166 flow_controller_.Disable(); | 166 flow_controller_.Disable(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void DisableConnectionFlowControlForThisStream() { | 169 void DisableConnectionFlowControlForThisStream() { |
| 170 stream_contributes_to_connection_flow_control_ = false; | 170 stream_contributes_to_connection_flow_control_ = false; |
| 171 } | 171 } |
| 172 | 172 |
| 173 private: | 173 private: |
| 174 friend class test::ReliableQuicStreamPeer; | 174 friend class test::ReliableQuicStreamPeer; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // connection level flow control limits (but are stream level flow control | 243 // connection level flow control limits (but are stream level flow control |
| 244 // limited). | 244 // limited). |
| 245 bool stream_contributes_to_connection_flow_control_; | 245 bool stream_contributes_to_connection_flow_control_; |
| 246 | 246 |
| 247 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); | 247 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } // namespace net | 250 } // namespace net |
| 251 | 251 |
| 252 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 252 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
| OLD | NEW |