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

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

Issue 181483006: PACKET_NBYTE_GUID -> PACKET_NBYTE_CONNECTION_ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small comment fix 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 | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session_test.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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns false if the stream is still active or if the stream has 160 // Returns false if the stream is still active or if the stream has
161 // not yet been created. 161 // not yet been created.
162 bool IsClosedStream(QuicStreamId id); 162 bool IsClosedStream(QuicStreamId id);
163 163
164 QuicConnection* connection() { return connection_.get(); } 164 QuicConnection* connection() { return connection_.get(); }
165 const QuicConnection* connection() const { return connection_.get(); } 165 const QuicConnection* connection() const { return connection_.get(); }
166 size_t num_active_requests() const { return stream_map_.size(); } 166 size_t num_active_requests() const { return stream_map_.size(); }
167 const IPEndPoint& peer_address() const { 167 const IPEndPoint& peer_address() const {
168 return connection_->peer_address(); 168 return connection_->peer_address();
169 } 169 }
170 QuicGuid guid() const { return connection_->guid(); } 170 QuicConnectionId connection_id() const {
171 return connection_->connection_id();
172 }
171 173
172 QuicPacketCreator::Options* options() { return connection()->options(); } 174 QuicPacketCreator::Options* options() { return connection()->options(); }
173 175
174 // Returns the number of currently open streams, including those which have 176 // Returns the number of currently open streams, including those which have
175 // been implicitly created. 177 // been implicitly created.
176 virtual size_t GetNumOpenStreams() const; 178 virtual size_t GetNumOpenStreams() const;
177 179
178 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority); 180 void MarkWriteBlocked(QuicStreamId id, QuicPriority priority);
179 181
180 // Returns true if the session has data to be sent, either queued in the 182 // Returns true if the session has data to be sent, either queued in the
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 331
330 // Indicate if there is pending data for the crypto stream. 332 // Indicate if there is pending data for the crypto stream.
331 bool has_pending_handshake_; 333 bool has_pending_handshake_;
332 334
333 DISALLOW_COPY_AND_ASSIGN(QuicSession); 335 DISALLOW_COPY_AND_ASSIGN(QuicSession);
334 }; 336 };
335 337
336 } // namespace net 338 } // namespace net
337 339
338 #endif // NET_QUIC_QUIC_SESSION_H_ 340 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698