| OLD | NEW |
| 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 <bitset> | 8 #include <bitset> |
| 9 | 9 |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // At destruction time, this records results of |pacaket_received_| into | 111 // At destruction time, this records results of |pacaket_received_| into |
| 112 // histograms for specific connection types. | 112 // histograms for specific connection types. |
| 113 void RecordLossHistograms() const; | 113 void RecordLossHistograms() const; |
| 114 | 114 |
| 115 BoundNetLog net_log_; | 115 BoundNetLog net_log_; |
| 116 QuicSession* session_; // Unowned. | 116 QuicSession* session_; // Unowned. |
| 117 // The last packet sequence number received. | 117 // The last packet sequence number received. |
| 118 QuicPacketSequenceNumber last_received_packet_sequence_number_; | 118 QuicPacketSequenceNumber last_received_packet_sequence_number_; |
| 119 // The size of the most recently received packet. | 119 // The size of the most recently received packet. |
| 120 size_t last_received_packet_size_; | 120 size_t last_received_packet_size_; |
| 121 // The size of the previously received packet. |
| 122 size_t previous_received_packet_size_; |
| 121 // The largest packet sequence number received. In the case where a packet is | 123 // The largest packet sequence number received. In the case where a packet is |
| 122 // received late (out of order), this value will not be updated. | 124 // received late (out of order), this value will not be updated. |
| 123 QuicPacketSequenceNumber largest_received_packet_sequence_number_; | 125 QuicPacketSequenceNumber largest_received_packet_sequence_number_; |
| 124 // The largest packet sequence number which the peer has failed to | 126 // The largest packet sequence number which the peer has failed to |
| 125 // receive, according to the missing packet set in their ack frames. | 127 // receive, according to the missing packet set in their ack frames. |
| 126 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_; | 128 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_; |
| 127 // Number of times that the current received packet sequence number is | 129 // Number of times that the current received packet sequence number is |
| 128 // smaller than the last received packet sequence number. | 130 // smaller than the last received packet sequence number. |
| 129 size_t num_out_of_order_received_packets_; | 131 size_t num_out_of_order_received_packets_; |
| 132 // Number of times that the current received packet sequence number is |
| 133 // smaller than the last received packet sequence number and where the |
| 134 // size of the current packet is larger than the size of the previous |
| 135 // packet. |
| 136 size_t num_out_of_order_large_received_packets_; |
| 130 // The number of times that OnPacketHeader was called. | 137 // The number of times that OnPacketHeader was called. |
| 131 // If the network replicates packets, then this number may be slightly | 138 // If the network replicates packets, then this number may be slightly |
| 132 // different from the real number of distinct packets received. | 139 // different from the real number of distinct packets received. |
| 133 QuicPacketCount num_packets_received_; | 140 QuicPacketCount num_packets_received_; |
| 134 // Number of times a truncated ACK frame was sent. | 141 // Number of times a truncated ACK frame was sent. |
| 135 size_t num_truncated_acks_sent_; | 142 size_t num_truncated_acks_sent_; |
| 136 // Number of times a truncated ACK frame was received. | 143 // Number of times a truncated ACK frame was received. |
| 137 size_t num_truncated_acks_received_; | 144 size_t num_truncated_acks_received_; |
| 138 // The kCADR value provided by the server in ServerHello. | 145 // The kCADR value provided by the server in ServerHello. |
| 139 IPEndPoint local_address_from_shlo_; | 146 IPEndPoint local_address_from_shlo_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 164 // The available type of connection (WiFi, 3G, etc.) when connection was first | 171 // The available type of connection (WiFi, 3G, etc.) when connection was first |
| 165 // used. | 172 // used. |
| 166 const char* const connection_description_; | 173 const char* const connection_description_; |
| 167 | 174 |
| 168 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 175 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 169 }; | 176 }; |
| 170 | 177 |
| 171 } // namespace net | 178 } // namespace net |
| 172 | 179 |
| 173 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 180 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |