| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Count of the number of frames received. | 144 // Count of the number of frames received. |
| 145 int num_frames_received_; | 145 int num_frames_received_; |
| 146 // Count of the number of duplicate frames received. | 146 // Count of the number of duplicate frames received. |
| 147 int num_duplicate_frames_received_; | 147 int num_duplicate_frames_received_; |
| 148 // Count of the number of packets received with incorrect connection IDs. | 148 // Count of the number of packets received with incorrect connection IDs. |
| 149 int num_incorrect_connection_ids_; | 149 int num_incorrect_connection_ids_; |
| 150 // Count of the number of undecryptable packets received. | 150 // Count of the number of undecryptable packets received. |
| 151 int num_undecryptable_packets_; | 151 int num_undecryptable_packets_; |
| 152 // Count of the number of duplicate packets received. | 152 // Count of the number of duplicate packets received. |
| 153 int num_duplicate_packets_; | 153 int num_duplicate_packets_; |
| 154 // Count of the number of BLOCKED frames received. |
| 155 int num_blocked_frames_received_; |
| 156 // Count of the number of BLOCKED frames sent. |
| 157 int num_blocked_frames_sent_; |
| 154 // Vector of inital packets status' indexed by packet sequence numbers, where | 158 // Vector of inital packets status' indexed by packet sequence numbers, where |
| 155 // false means never received. Zero is not a valid packet sequence number, so | 159 // false means never received. Zero is not a valid packet sequence number, so |
| 156 // that offset is never used, and we'll track 150 packets. | 160 // that offset is never used, and we'll track 150 packets. |
| 157 std::bitset<151> received_packets_; | 161 std::bitset<151> received_packets_; |
| 158 // Vector to indicate which of the initial 150 received packets turned out to | 162 // Vector to indicate which of the initial 150 received packets turned out to |
| 159 // contain solo ACK frames. An element is true iff an ACK frame was in the | 163 // contain solo ACK frames. An element is true iff an ACK frame was in the |
| 160 // corresponding packet, and there was very little else. | 164 // corresponding packet, and there was very little else. |
| 161 std::bitset<151> received_acks_; | 165 std::bitset<151> received_acks_; |
| 162 // The available type of connection (WiFi, 3G, etc.) when connection was first | 166 // The available type of connection (WiFi, 3G, etc.) when connection was first |
| 163 // used. | 167 // used. |
| 164 const char* const connection_description_; | 168 const char* const connection_description_; |
| 165 | 169 |
| 166 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 170 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 } // namespace net | 173 } // namespace net |
| 170 | 174 |
| 171 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 175 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |