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 "net/base/ip_endpoint.h" |
8 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
9 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 class BoundNetLog; | |
14 class CryptoHandshakeMessage; | 14 class CryptoHandshakeMessage; |
15 | 15 |
16 // This class is a debug visitor of a QuicConnection which logs | 16 // This class is a debug visitor of a QuicConnection which logs |
17 // events to |net_log|. | 17 // events to |net_log|. |
18 class NET_EXPORT_PRIVATE QuicConnectionLogger | 18 class NET_EXPORT_PRIVATE QuicConnectionLogger |
19 : public QuicConnectionDebugVisitorInterface { | 19 : public QuicConnectionDebugVisitorInterface { |
20 public: | 20 public: |
21 explicit QuicConnectionLogger(const BoundNetLog& net_log); | 21 explicit QuicConnectionLogger(const BoundNetLog& net_log); |
22 | 22 |
23 virtual ~QuicConnectionLogger(); | 23 virtual ~QuicConnectionLogger(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // The largest packet sequence number which the peer has failed to | 69 // The largest packet sequence number which the peer has failed to |
70 // receive, according to the missing packet set in their ack frames. | 70 // receive, according to the missing packet set in their ack frames. |
71 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_; | 71 QuicPacketSequenceNumber largest_received_missing_packet_sequence_number_; |
72 // Number of times that the current received packet sequence number is | 72 // Number of times that the current received packet sequence number is |
73 // smaller than the last received packet sequence number. | 73 // smaller than the last received packet sequence number. |
74 size_t out_of_order_recieved_packet_count_; | 74 size_t out_of_order_recieved_packet_count_; |
75 // Number of times a truncated ACK frame was sent. | 75 // Number of times a truncated ACK frame was sent. |
76 size_t num_truncated_acks_sent_; | 76 size_t num_truncated_acks_sent_; |
77 // Number of times a truncated ACK frame was received. | 77 // Number of times a truncated ACK frame was received. |
78 size_t num_truncated_acks_received_; | 78 size_t num_truncated_acks_received_; |
| 79 // The kCADR value provided by the server in ServerHello. |
| 80 IPEndPoint client_address_; |
79 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 81 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
80 }; | 82 }; |
81 | 83 |
82 } // namespace net | 84 } // namespace net |
83 | 85 |
84 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 86 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |