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

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

Issue 464363005: Add new histograms to confirm that PINGs are outstanding when a QUIC connection times out with open… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_client_session.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 QuicPacketSequenceNumber largest_observed() const { 223 QuicPacketSequenceNumber largest_observed() const {
224 return largest_observed_; 224 return largest_observed_;
225 } 225 }
226 226
227 void set_network_change_visitor(NetworkChangeVisitor* visitor) { 227 void set_network_change_visitor(NetworkChangeVisitor* visitor) {
228 DCHECK(!network_change_visitor_); 228 DCHECK(!network_change_visitor_);
229 DCHECK(visitor); 229 DCHECK(visitor);
230 network_change_visitor_ = visitor; 230 network_change_visitor_ = visitor;
231 } 231 }
232 232
233 size_t consecutive_rto_count() const {
234 return consecutive_rto_count_;
235 }
236
237 size_t consecutive_tlp_count() const {
238 return consecutive_tlp_count_;
239 }
240
233 private: 241 private:
234 friend class test::QuicConnectionPeer; 242 friend class test::QuicConnectionPeer;
235 friend class test::QuicSentPacketManagerPeer; 243 friend class test::QuicSentPacketManagerPeer;
236 244
237 // The retransmission timer is a single timer which switches modes depending 245 // The retransmission timer is a single timer which switches modes depending
238 // upon connection state. 246 // upon connection state.
239 enum RetransmissionTimeoutMode { 247 enum RetransmissionTimeoutMode {
240 // A conventional TCP style RTO. 248 // A conventional TCP style RTO.
241 RTO_MODE, 249 RTO_MODE,
242 // A tail loss probe. By default, QUIC sends up to two before RTOing. 250 // A tail loss probe. By default, QUIC sends up to two before RTOing.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // the crypto stream (i.e. SCUP messages) are treated like normal 377 // the crypto stream (i.e. SCUP messages) are treated like normal
370 // retransmittable frames. 378 // retransmittable frames.
371 bool handshake_confirmed_; 379 bool handshake_confirmed_;
372 380
373 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 381 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
374 }; 382 };
375 383
376 } // namespace net 384 } // namespace net
377 385
378 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 386 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698