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

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

Issue 180833004: Gather histogram for received packets indicating losses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | net/quic/quic_connection_logger.cc » ('j') | net/quic/quic_connection_logger.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CONNECTION_LOGGER_H_ 5 #ifndef NET_QUIC_QUIC_CONNECTION_LOGGER_H_
6 #define NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 6 #define NET_QUIC_QUIC_CONNECTION_LOGGER_H_
7 7
8 #include <vector>
9
8 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
9 #include "net/quic/quic_connection.h" 11 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_protocol.h" 12 #include "net/quic/quic_protocol.h"
11 13
12 namespace net { 14 namespace net {
13 15
14 class CryptoHandshakeMessage; 16 class CryptoHandshakeMessage;
15 17
16 // This class is a debug visitor of a QuicConnection which logs 18 // This class is a debug visitor of a QuicConnection which logs
17 // events to |net_log|. 19 // events to |net_log|.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_; 73 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_;
72 // Number of times that the current received packet sequence number is 74 // Number of times that the current received packet sequence number is
73 // smaller than the last received packet sequence number. 75 // smaller than the last received packet sequence number.
74 size_t out_of_order_recieved_packet_count_; 76 size_t out_of_order_recieved_packet_count_;
75 // Number of times a truncated ACK frame was sent. 77 // Number of times a truncated ACK frame was sent.
76 size_t num_truncated_acks_sent_; 78 size_t num_truncated_acks_sent_;
77 // Number of times a truncated ACK frame was received. 79 // Number of times a truncated ACK frame was received.
78 size_t num_truncated_acks_received_; 80 size_t num_truncated_acks_received_;
79 // The kCADR value provided by the server in ServerHello. 81 // The kCADR value provided by the server in ServerHello.
80 IPEndPoint client_address_; 82 IPEndPoint client_address_;
83 // Vector of inital packets status', where false means never received.
84 std::vector<bool> packets_received_;
Ryan Hamilton 2014/03/05 03:48:00 You could also consider using a std::bitset, if yo
jar (doing other things) 2014/03/06 03:34:17 Done.
81 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 85 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
82 }; 86 };
83 87
84 } // namespace net 88 } // namespace net
85 89
86 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 90 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection_logger.cc » ('j') | net/quic/quic_connection_logger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698