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

Side by Side Diff: net/quic/core/quic_session.h

Issue 2916233002: Remove is_deletable_ from QuicStream. Add QuicStream::IsWaitingForAcks (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | net/quic/core/quic_session.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 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_CORE_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_CORE_QUIC_SESSION_H_
8 #define NET_QUIC_CORE_QUIC_SESSION_H_ 8 #define NET_QUIC_CORE_QUIC_SESSION_H_
9 9
10 #include <cstddef> 10 #include <cstddef>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Returns the number of "available" streams, the stream ids less than 208 // Returns the number of "available" streams, the stream ids less than
209 // largest_peer_created_stream_id_ that have not yet been opened. 209 // largest_peer_created_stream_id_ that have not yet been opened.
210 size_t GetNumAvailableStreams() const; 210 size_t GetNumAvailableStreams() const;
211 211
212 // Add the stream to the session's write-blocked list because it is blocked by 212 // Add the stream to the session's write-blocked list because it is blocked by
213 // connection-level flow control but not by its own stream-level flow control. 213 // connection-level flow control but not by its own stream-level flow control.
214 // The stream will be given a chance to write when a connection-level 214 // The stream will be given a chance to write when a connection-level
215 // WINDOW_UPDATE arrives. 215 // WINDOW_UPDATE arrives.
216 void MarkConnectionLevelWriteBlocked(QuicStreamId id); 216 void MarkConnectionLevelWriteBlocked(QuicStreamId id);
217 217
218 // Called by a stream when it becomes deletable. 218 // Called when stream |id| is done waiting for acks either because all data
219 void MarkStreamDeletable(QuicStreamId id); 219 // gets acked or is not interested in data being acked (which happens when
220 // a stream is reset because of an error).
221 void OnStreamDoneWaitingForAcks(QuicStreamId id);
220 222
221 // Returns true if the session has data to be sent, either queued in the 223 // Returns true if the session has data to be sent, either queued in the
222 // connection, or in a write-blocked stream. 224 // connection, or in a write-blocked stream.
223 bool HasDataToWrite() const; 225 bool HasDataToWrite() const;
224 226
225 bool goaway_sent() const; 227 bool goaway_sent() const;
226 228
227 bool goaway_received() const; 229 bool goaway_received() const;
228 230
229 QuicErrorCode error() const { return error_; } 231 QuicErrorCode error() const { return error_; }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 514
513 // This session is notified on every ack or loss. 515 // This session is notified on every ack or loss.
514 const bool use_stream_notifier_; 516 const bool use_stream_notifier_;
515 517
516 DISALLOW_COPY_AND_ASSIGN(QuicSession); 518 DISALLOW_COPY_AND_ASSIGN(QuicSession);
517 }; 519 };
518 520
519 } // namespace net 521 } // namespace net
520 522
521 #endif // NET_QUIC_CORE_QUIC_SESSION_H_ 523 #endif // NET_QUIC_CORE_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698