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

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

Issue 312553003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_stream_factory.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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 QuicConnection* connection() { return connection_.get(); } 168 QuicConnection* connection() { return connection_.get(); }
169 const QuicConnection* connection() const { return connection_.get(); } 169 const QuicConnection* connection() const { return connection_.get(); }
170 size_t num_active_requests() const { return stream_map_.size(); } 170 size_t num_active_requests() const { return stream_map_.size(); }
171 const IPEndPoint& peer_address() const { 171 const IPEndPoint& peer_address() const {
172 return connection_->peer_address(); 172 return connection_->peer_address();
173 } 173 }
174 QuicConnectionId connection_id() const { 174 QuicConnectionId connection_id() const {
175 return connection_->connection_id(); 175 return connection_->connection_id();
176 } 176 }
177 177
178 QuicPacketCreator::Options* options() { return connection()->options(); }
179
180 // Returns the number of currently open streams, including those which have 178 // Returns the number of currently open streams, including those which have
181 // been implicitly created, but excluding the reserved headers and crypto 179 // been implicitly created, but excluding the reserved headers and crypto
182 // streams. 180 // streams.
183 virtual size_t GetNumOpenStreams() const; 181 virtual size_t GetNumOpenStreams() const;
184 182
185 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority); 183 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority);
186 184
187 // Returns true if the session has data to be sent, either queued in the 185 // Returns true if the session has data to be sent, either queued in the
188 // connection, or in a write-blocked stream. 186 // connection, or in a write-blocked stream.
189 bool HasDataToWrite() const; 187 bool HasDataToWrite() const;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 306
309 // Initial flow control receive window size for new streams. 307 // Initial flow control receive window size for new streams.
310 uint32 max_flow_control_receive_window_bytes_; 308 uint32 max_flow_control_receive_window_bytes_;
311 309
312 DISALLOW_COPY_AND_ASSIGN(QuicSession); 310 DISALLOW_COPY_AND_ASSIGN(QuicSession);
313 }; 311 };
314 312
315 } // namespace net 313 } // namespace net
316 314
317 #endif // NET_QUIC_QUIC_SESSION_H_ 315 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698