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

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

Issue 937803002: Add a new histogram Net.QuicSession.HeadersStreamEarlyFramesReceived (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 5 years, 10 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_connection_logger_unittest.cc ('k') | net/quic/reliable_quic_stream.h » ('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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
216 bool IsSecure() const { 216 bool IsSecure() const {
217 return connection()->is_secure(); 217 return connection()->is_secure();
218 } 218 }
219 219
220 size_t get_max_open_streams() const { return max_open_streams_; } 220 size_t get_max_open_streams() const { return max_open_streams_; }
221 221
222 const QuicHeadersStream* headers_stream() { return headers_stream_.get(); }
223
222 protected: 224 protected:
223 typedef base::hash_map<QuicStreamId, QuicDataStream*> DataStreamMap; 225 typedef base::hash_map<QuicStreamId, QuicDataStream*> DataStreamMap;
224 226
225 // Creates a new stream, owned by the caller, to handle a peer-initiated 227 // Creates a new stream, owned by the caller, to handle a peer-initiated
226 // stream. Returns nullptr and does error handling if the stream can not be 228 // stream. Returns nullptr and does error handling if the stream can not be
227 // created. 229 // created.
228 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) = 0; 230 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) = 0;
229 231
230 // Create a new stream, owned by the caller, to handle a locally-initiated 232 // Create a new stream, owned by the caller, to handle a locally-initiated
231 // stream. Returns nullptr if max streams have already been opened. 233 // stream. Returns nullptr if max streams have already been opened.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 335
334 // Indicate if there is pending data for the crypto stream. 336 // Indicate if there is pending data for the crypto stream.
335 bool has_pending_handshake_; 337 bool has_pending_handshake_;
336 338
337 DISALLOW_COPY_AND_ASSIGN(QuicSession); 339 DISALLOW_COPY_AND_ASSIGN(QuicSession);
338 }; 340 };
339 341
340 } // namespace net 342 } // namespace net
341 343
342 #endif // NET_QUIC_QUIC_SESSION_H_ 344 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger_unittest.cc ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698