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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) OVERRIDE; | 61 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) OVERRIDE; |
62 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE; | 62 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE; |
63 virtual void OnPingFrame(const QuicPingFrame& frame) OVERRIDE; | 63 virtual void OnPingFrame(const QuicPingFrame& frame) OVERRIDE; |
64 virtual void OnPublicResetPacket( | 64 virtual void OnPublicResetPacket( |
65 const QuicPublicResetPacket& packet) OVERRIDE; | 65 const QuicPublicResetPacket& packet) OVERRIDE; |
66 virtual void OnVersionNegotiationPacket( | 66 virtual void OnVersionNegotiationPacket( |
67 const QuicVersionNegotiationPacket& packet) OVERRIDE; | 67 const QuicVersionNegotiationPacket& packet) OVERRIDE; |
68 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, | 68 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, |
69 base::StringPiece payload) OVERRIDE; | 69 base::StringPiece payload) OVERRIDE; |
70 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 70 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
| 71 virtual void OnSuccessfulVersionNegotiation( |
| 72 const QuicVersion& version) OVERRIDE; |
71 | 73 |
72 void OnCryptoHandshakeMessageReceived( | 74 void OnCryptoHandshakeMessageReceived( |
73 const CryptoHandshakeMessage& message); | 75 const CryptoHandshakeMessage& message); |
74 void OnCryptoHandshakeMessageSent( | 76 void OnCryptoHandshakeMessageSent( |
75 const CryptoHandshakeMessage& message); | 77 const CryptoHandshakeMessage& message); |
76 void OnSuccessfulVersionNegotiation(const QuicVersion& version); | |
77 void UpdateReceivedFrameCounts(QuicStreamId stream_id, | 78 void UpdateReceivedFrameCounts(QuicStreamId stream_id, |
78 int num_frames_received, | 79 int num_frames_received, |
79 int num_duplicate_frames_received); | 80 int num_duplicate_frames_received); |
80 void OnCertificateVerified(const CertVerifyResult& result); | 81 void OnCertificateVerified(const CertVerifyResult& result); |
81 | 82 |
82 private: | 83 private: |
83 // Do a factory get for a histogram for recording data, about individual | 84 // Do a factory get for a histogram for recording data, about individual |
84 // packet sequence numbers, that was gathered in the vectors | 85 // packet sequence numbers, that was gathered in the vectors |
85 // received_packets_ and received_acks_. |statistic_name| identifies which | 86 // received_packets_ and received_acks_. |statistic_name| identifies which |
86 // element of data is recorded, and is used to form the histogram name. | 87 // element of data is recorded, and is used to form the histogram name. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // The available type of connection (WiFi, 3G, etc.) when connection was first | 162 // The available type of connection (WiFi, 3G, etc.) when connection was first |
162 // used. | 163 // used. |
163 const char* const connection_description_; | 164 const char* const connection_description_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 166 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace net | 169 } // namespace net |
169 | 170 |
170 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 171 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |