Chromium Code Reviews| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 // Count of the number of frames received. | 149 // Count of the number of frames received. |
| 150 int num_frames_received_; | 150 int num_frames_received_; |
| 151 // Count of the number of duplicate frames received. | 151 // Count of the number of duplicate frames received. |
| 152 int num_duplicate_frames_received_; | 152 int num_duplicate_frames_received_; |
| 153 // Count of the number of packets received with incorrect connection IDs. | 153 // Count of the number of packets received with incorrect connection IDs. |
| 154 int num_incorrect_connection_ids_; | 154 int num_incorrect_connection_ids_; |
| 155 // Count of the number of undecryptable packets received. | 155 // Count of the number of undecryptable packets received. |
| 156 int num_undecryptable_packets_; | 156 int num_undecryptable_packets_; |
| 157 // Count of the number of duplicate packets received. | 157 // Count of the number of duplicate packets received. |
| 158 int num_duplicate_packets_; | 158 int num_duplicate_packets_; |
| 159 // Count of the number of BLOCKED frames received. | |
| 160 uint32 num_blocked_frames_received_; | |
|
Ryan Hamilton
2014/10/22 15:51:26
nit: looks like you can just make these "int" to m
ramant (doing other things)
2014/10/22 16:54:46
Done.
| |
| 161 // Count of the number of BLOCKED frames sent. | |
| 162 uint32 num_blocked_frames_sent_; | |
| 159 // Vector of inital packets status' indexed by packet sequence numbers, where | 163 // Vector of inital packets status' indexed by packet sequence numbers, where |
| 160 // false means never received. Zero is not a valid packet sequence number, so | 164 // false means never received. Zero is not a valid packet sequence number, so |
| 161 // that offset is never used, and we'll track 150 packets. | 165 // that offset is never used, and we'll track 150 packets. |
| 162 std::bitset<151> received_packets_; | 166 std::bitset<151> received_packets_; |
| 163 // Vector to indicate which of the initial 150 received packets turned out to | 167 // Vector to indicate which of the initial 150 received packets turned out to |
| 164 // contain solo ACK frames. An element is true iff an ACK frame was in the | 168 // contain solo ACK frames. An element is true iff an ACK frame was in the |
| 165 // corresponding packet, and there was very little else. | 169 // corresponding packet, and there was very little else. |
| 166 std::bitset<151> received_acks_; | 170 std::bitset<151> received_acks_; |
| 167 // 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 |
| 168 // used. | 172 // used. |
| 169 const char* const connection_description_; | 173 const char* const connection_description_; |
| 170 | 174 |
| 171 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 175 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 } // namespace net | 178 } // namespace net |
| 175 | 179 |
| 176 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 180 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |