| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_STATS_H_ | 5 #ifndef NET_QUIC_QUIC_CONNECTION_STATS_H_ |
| 6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ | 6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <ostream> | 11 #include <ostream> |
| 12 | 12 |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/quic/quic_bandwidth.h" | 14 #include "net/quic/core/quic_bandwidth.h" |
| 15 #include "net/quic/quic_protocol.h" | 15 #include "net/quic/core/quic_protocol.h" |
| 16 #include "net/quic/quic_time.h" | 16 #include "net/quic/core/quic_time.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 // Structure to hold stats for a QuicConnection. | 19 // Structure to hold stats for a QuicConnection. |
| 20 struct NET_EXPORT_PRIVATE QuicConnectionStats { | 20 struct NET_EXPORT_PRIVATE QuicConnectionStats { |
| 21 QuicConnectionStats(); | 21 QuicConnectionStats(); |
| 22 QuicConnectionStats(const QuicConnectionStats& other); | 22 QuicConnectionStats(const QuicConnectionStats& other); |
| 23 ~QuicConnectionStats(); | 23 ~QuicConnectionStats(); |
| 24 | 24 |
| 25 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 25 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
| 26 std::ostream& os, | 26 std::ostream& os, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // one or more lost packets. | 84 // one or more lost packets. |
| 85 uint32_t tcp_loss_events; | 85 uint32_t tcp_loss_events; |
| 86 | 86 |
| 87 // Creation time, as reported by the QuicClock. | 87 // Creation time, as reported by the QuicClock. |
| 88 QuicTime connection_creation_time; | 88 QuicTime connection_creation_time; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace net | 91 } // namespace net |
| 92 | 92 |
| 93 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ | 93 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ |
| OLD | NEW |