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

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

Issue 1397983007: relnote: remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rch_insecure_quic
Patch Set: Compile fix Created 5 years, 2 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_server_id_test.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 <map> 10 #include <map>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 Perspective perspective() const { return connection_->perspective(); } 179 Perspective perspective() const { return connection_->perspective(); }
180 180
181 QuicFlowController* flow_controller() { return &flow_controller_; } 181 QuicFlowController* flow_controller() { return &flow_controller_; }
182 182
183 // Returns true if connection is flow controller blocked. 183 // Returns true if connection is flow controller blocked.
184 bool IsConnectionFlowControlBlocked() const; 184 bool IsConnectionFlowControlBlocked() const;
185 185
186 // Returns true if any stream is flow controller blocked. 186 // Returns true if any stream is flow controller blocked.
187 bool IsStreamFlowControlBlocked(); 187 bool IsStreamFlowControlBlocked();
188 188
189 // Returns true if this is a secure QUIC session.
190 bool IsSecure() const { return connection()->is_secure(); }
191
192 size_t get_max_open_streams() const { return max_open_streams_; } 189 size_t get_max_open_streams() const { return max_open_streams_; }
193 190
194 size_t get_max_available_streams() const { 191 size_t get_max_available_streams() const {
195 return max_open_streams_ * kMaxAvailableStreamsMultiplier; 192 return max_open_streams_ * kMaxAvailableStreamsMultiplier;
196 } 193 }
197 194
198 ReliableQuicStream* GetStream(const QuicStreamId stream_id); 195 ReliableQuicStream* GetStream(const QuicStreamId stream_id);
199 196
200 // Mark a stream as draining. 197 // Mark a stream as draining.
201 void StreamDraining(QuicStreamId id); 198 void StreamDraining(QuicStreamId id);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 328
332 // Indicate if there is pending data for the crypto stream. 329 // Indicate if there is pending data for the crypto stream.
333 bool has_pending_handshake_; 330 bool has_pending_handshake_;
334 331
335 DISALLOW_COPY_AND_ASSIGN(QuicSession); 332 DISALLOW_COPY_AND_ASSIGN(QuicSession);
336 }; 333 };
337 334
338 } // namespace net 335 } // namespace net
339 336
340 #endif // NET_QUIC_QUIC_SESSION_H_ 337 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_server_id_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698