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; | |
73 | 71 |
74 void OnCryptoHandshakeMessageReceived( | 72 void OnCryptoHandshakeMessageReceived( |
75 const CryptoHandshakeMessage& message); | 73 const CryptoHandshakeMessage& message); |
76 void OnCryptoHandshakeMessageSent( | 74 void OnCryptoHandshakeMessageSent( |
77 const CryptoHandshakeMessage& message); | 75 const CryptoHandshakeMessage& message); |
| 76 void OnSuccessfulVersionNegotiation(const QuicVersion& version); |
78 void UpdateReceivedFrameCounts(QuicStreamId stream_id, | 77 void UpdateReceivedFrameCounts(QuicStreamId stream_id, |
79 int num_frames_received, | 78 int num_frames_received, |
80 int num_duplicate_frames_received); | 79 int num_duplicate_frames_received); |
81 void OnCertificateVerified(const CertVerifyResult& result); | 80 void OnCertificateVerified(const CertVerifyResult& result); |
82 | 81 |
83 private: | 82 private: |
84 // Do a factory get for a histogram for recording data, about individual | 83 // Do a factory get for a histogram for recording data, about individual |
85 // packet sequence numbers, that was gathered in the vectors | 84 // packet sequence numbers, that was gathered in the vectors |
86 // received_packets_ and received_acks_. |statistic_name| identifies which | 85 // received_packets_ and received_acks_. |statistic_name| identifies which |
87 // element of data is recorded, and is used to form the histogram name. | 86 // 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... |
162 // The available type of connection (WiFi, 3G, etc.) when connection was first | 161 // The available type of connection (WiFi, 3G, etc.) when connection was first |
163 // used. | 162 // used. |
164 const char* const connection_description_; | 163 const char* const connection_description_; |
165 | 164 |
166 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 165 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
167 }; | 166 }; |
168 | 167 |
169 } // namespace net | 168 } // namespace net |
170 | 169 |
171 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 170 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |