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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void CloseWriteSide(); | 160 void CloseWriteSide(); |
161 | 161 |
162 bool fin_buffered() const { return fin_buffered_; } | 162 bool fin_buffered() const { return fin_buffered_; } |
163 | 163 |
164 const QuicSession* session() const { return session_; } | 164 const QuicSession* session() const { return session_; } |
165 QuicSession* session() { return session_; } | 165 QuicSession* session() { return session_; } |
166 | 166 |
167 const QuicStreamSequencer* sequencer() const { return &sequencer_; } | 167 const QuicStreamSequencer* sequencer() const { return &sequencer_; } |
168 QuicStreamSequencer* sequencer() { return &sequencer_; } | 168 QuicStreamSequencer* sequencer() { return &sequencer_; } |
169 | 169 |
170 // TODO(rjshade): Remove this method when removing QUIC_VERSION_19. | |
171 void DisableFlowControl() { | |
172 flow_controller_.Disable(); | |
173 } | |
174 | |
175 void DisableConnectionFlowControlForThisStream() { | 170 void DisableConnectionFlowControlForThisStream() { |
176 stream_contributes_to_connection_flow_control_ = false; | 171 stream_contributes_to_connection_flow_control_ = false; |
177 } | 172 } |
178 | 173 |
179 private: | 174 private: |
180 friend class test::ReliableQuicStreamPeer; | 175 friend class test::ReliableQuicStreamPeer; |
181 friend class QuicStreamUtils; | 176 friend class QuicStreamUtils; |
182 class ProxyAckNotifierDelegate; | 177 class ProxyAckNotifierDelegate; |
183 | 178 |
184 struct PendingData { | 179 struct PendingData { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // connection level flow control limits (but are stream level flow control | 244 // connection level flow control limits (but are stream level flow control |
250 // limited). | 245 // limited). |
251 bool stream_contributes_to_connection_flow_control_; | 246 bool stream_contributes_to_connection_flow_control_; |
252 | 247 |
253 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); | 248 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); |
254 }; | 249 }; |
255 | 250 |
256 } // namespace net | 251 } // namespace net |
257 | 252 |
258 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ | 253 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ |
OLD | NEW |