Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: net/quic/reliable_quic_stream.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698