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

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

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 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
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 bool goaway_sent() const { 196 bool goaway_sent() const {
197 return goaway_sent_; 197 return goaway_sent_;
198 } 198 }
199 199
200 // Gets the SSL connection information. 200 // Gets the SSL connection information.
201 virtual bool GetSSLInfo(SSLInfo* ssl_info) const; 201 virtual bool GetSSLInfo(SSLInfo* ssl_info) const;
202 202
203 QuicErrorCode error() const { return error_; } 203 QuicErrorCode error() const { return error_; }
204 204
205 bool is_server() const { return connection_->is_server(); } 205 Perspective perspective() const { return connection_->perspective(); }
206 206
207 QuicFlowController* flow_controller() { return flow_controller_.get(); } 207 QuicFlowController* flow_controller() { return flow_controller_.get(); }
208 208
209 // Returns true if connection is flow controller blocked. 209 // Returns true if connection is flow controller blocked.
210 bool IsConnectionFlowControlBlocked() const; 210 bool IsConnectionFlowControlBlocked() const;
211 211
212 // Returns true if any stream is flow controller blocked. 212 // Returns true if any stream is flow controller blocked.
213 bool IsStreamFlowControlBlocked(); 213 bool IsStreamFlowControlBlocked();
214 214
215 // Returns true if this is a secure QUIC session. 215 // Returns true if this is a secure QUIC session.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Indicate if there is pending data for the crypto stream. 337 // Indicate if there is pending data for the crypto stream.
338 bool has_pending_handshake_; 338 bool has_pending_handshake_;
339 339
340 DISALLOW_COPY_AND_ASSIGN(QuicSession); 340 DISALLOW_COPY_AND_ASSIGN(QuicSession);
341 }; 341 };
342 342
343 } // namespace net 343 } // namespace net
344 344
345 #endif // NET_QUIC_QUIC_SESSION_H_ 345 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698