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

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

Issue 216423006: Send BLOCKED frame directly from ReliableQuicStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 <vector> 10 #include <vector>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 return connection_->connection_id(); 172 return connection_->connection_id();
173 } 173 }
174 174
175 QuicPacketCreator::Options* options() { return connection()->options(); } 175 QuicPacketCreator::Options* options() { return connection()->options(); }
176 176
177 // Returns the number of currently open streams, including those which have 177 // Returns the number of currently open streams, including those which have
178 // been implicitly created. 178 // been implicitly created.
179 virtual size_t GetNumOpenStreams() const; 179 virtual size_t GetNumOpenStreams() const;
180 180
181 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority); 181 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority);
182 void MarkFlowControlBlocked(QuicStreamId id, QuicPriority priority);
183 182
184 // Returns true if the session has data to be sent, either queued in the 183 // Returns true if the session has data to be sent, either queued in the
185 // connection, or in a write-blocked stream. 184 // connection, or in a write-blocked stream.
186 bool HasDataToWrite() const; 185 bool HasDataToWrite() const;
187 186
188 bool goaway_received() const { 187 bool goaway_received() const {
189 return goaway_received_; 188 return goaway_received_;
190 } 189 }
191 190
192 bool goaway_sent() const { 191 bool goaway_sent() const {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 292
294 // Indicate if there is pending data for the crypto stream. 293 // Indicate if there is pending data for the crypto stream.
295 bool has_pending_handshake_; 294 bool has_pending_handshake_;
296 295
297 DISALLOW_COPY_AND_ASSIGN(QuicSession); 296 DISALLOW_COPY_AND_ASSIGN(QuicSession);
298 }; 297 };
299 298
300 } // namespace net 299 } // namespace net
301 300
302 #endif // NET_QUIC_QUIC_SESSION_H_ 301 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698