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

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

Issue 1468773002: Changing from QuicPriority to SpdyPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107610692
Patch Set: Created 5 years 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_reliable_client_stream.cc ('k') | net/quic/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_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SESSION_H_
8 #define NET_QUIC_QUIC_SESSION_H_ 8 #define NET_QUIC_QUIC_SESSION_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual size_t GetNumActiveStreams() const; 161 virtual size_t GetNumActiveStreams() const;
162 162
163 // Returns the number of "available" streams, the stream ids less than 163 // Returns the number of "available" streams, the stream ids less than
164 // largest_peer_created_stream_id_ that have not yet been opened. 164 // largest_peer_created_stream_id_ that have not yet been opened.
165 virtual size_t GetNumAvailableStreams() const; 165 virtual size_t GetNumAvailableStreams() const;
166 166
167 // Add the stream to the session's write-blocked list because it is blocked by 167 // Add the stream to the session's write-blocked list because it is blocked by
168 // connection-level flow control but not by its own stream-level flow control. 168 // connection-level flow control but not by its own stream-level flow control.
169 // The stream will be given a chance to write when a connection-level 169 // The stream will be given a chance to write when a connection-level
170 // WINDOW_UPDATE arrives. 170 // WINDOW_UPDATE arrives.
171 void MarkConnectionLevelWriteBlocked(QuicStreamId id, QuicPriority priority); 171 void MarkConnectionLevelWriteBlocked(QuicStreamId id,
172 SpdyPriority priority);
172 173
173 // Returns true if the session has data to be sent, either queued in the 174 // Returns true if the session has data to be sent, either queued in the
174 // connection, or in a write-blocked stream. 175 // connection, or in a write-blocked stream.
175 bool HasDataToWrite() const; 176 bool HasDataToWrite() const;
176 177
177 bool goaway_sent() const; 178 bool goaway_sent() const;
178 179
179 bool goaway_received() const; 180 bool goaway_received() const;
180 181
181 QuicErrorCode error() const { return error_; } 182 QuicErrorCode error() const { return error_; }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 338
338 // Indicate if there is pending data for the crypto stream. 339 // Indicate if there is pending data for the crypto stream.
339 bool has_pending_handshake_; 340 bool has_pending_handshake_;
340 341
341 DISALLOW_COPY_AND_ASSIGN(QuicSession); 342 DISALLOW_COPY_AND_ASSIGN(QuicSession);
342 }; 343 };
343 344
344 } // namespace net 345 } // namespace net
345 346
346 #endif // NET_QUIC_QUIC_SESSION_H_ 347 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_reliable_client_stream.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698