| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // false means never received. Zero is not a valid packet sequence number, so | 135 // false means never received. Zero is not a valid packet sequence number, so |
| 136 // that offset is never used, and we'll track 150 packets. | 136 // that offset is never used, and we'll track 150 packets. |
| 137 std::bitset<151> received_packets_; | 137 std::bitset<151> received_packets_; |
| 138 // Vector to indicate which of the initial 150 received packets turned out to | 138 // Vector to indicate which of the initial 150 received packets turned out to |
| 139 // contain solo ACK frames. An element is true iff an ACK frame was in the | 139 // contain solo ACK frames. An element is true iff an ACK frame was in the |
| 140 // corresponding packet, and there was very little else. | 140 // corresponding packet, and there was very little else. |
| 141 std::bitset<151> received_acks_; | 141 std::bitset<151> received_acks_; |
| 142 // The available type of connection (WiFi, 3G, etc.) when connection was first | 142 // The available type of connection (WiFi, 3G, etc.) when connection was first |
| 143 // used. | 143 // used. |
| 144 const char* const connection_description_; | 144 const char* const connection_description_; |
| 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 146 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace net | 149 } // namespace net |
| 149 | 150 |
| 150 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 151 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |