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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) OVERRIDE; | 55 virtual void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) OVERRIDE; |
56 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) OVERRIDE; | 56 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) OVERRIDE; |
57 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE; | 57 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE; |
58 virtual void OnPingFrame(const QuicPingFrame& frame) OVERRIDE; | 58 virtual void OnPingFrame(const QuicPingFrame& frame) OVERRIDE; |
59 virtual void OnPublicResetPacket( | 59 virtual void OnPublicResetPacket( |
60 const QuicPublicResetPacket& packet) OVERRIDE; | 60 const QuicPublicResetPacket& packet) OVERRIDE; |
61 virtual void OnVersionNegotiationPacket( | 61 virtual void OnVersionNegotiationPacket( |
62 const QuicVersionNegotiationPacket& packet) OVERRIDE; | 62 const QuicVersionNegotiationPacket& packet) OVERRIDE; |
63 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, | 63 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, |
64 base::StringPiece payload) OVERRIDE; | 64 base::StringPiece payload) OVERRIDE; |
| 65 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
65 | 66 |
66 void OnCryptoHandshakeMessageReceived( | 67 void OnCryptoHandshakeMessageReceived( |
67 const CryptoHandshakeMessage& message); | 68 const CryptoHandshakeMessage& message); |
68 void OnCryptoHandshakeMessageSent( | 69 void OnCryptoHandshakeMessageSent( |
69 const CryptoHandshakeMessage& message); | 70 const CryptoHandshakeMessage& message); |
70 void OnConnectionClosed(QuicErrorCode error, bool from_peer); | |
71 void OnSuccessfulVersionNegotiation(const QuicVersion& version); | 71 void OnSuccessfulVersionNegotiation(const QuicVersion& version); |
72 void UpdateReceivedFrameCounts(QuicStreamId stream_id, | 72 void UpdateReceivedFrameCounts(QuicStreamId stream_id, |
73 int num_frames_received, | 73 int num_frames_received, |
74 int num_duplicate_frames_received); | 74 int num_duplicate_frames_received); |
75 void OnCertificateVerified(const CertVerifyResult& result); | 75 void OnCertificateVerified(const CertVerifyResult& result); |
76 | 76 |
77 private: | 77 private: |
78 // Do a factory get for a histogram for recording data, about individual | 78 // Do a factory get for a histogram for recording data, about individual |
79 // packet sequence numbers, that was gathered in the vectors | 79 // packet sequence numbers, that was gathered in the vectors |
80 // received_packets_ and received_acks_. |statistic_name| identifies which | 80 // received_packets_ and received_acks_. |statistic_name| identifies which |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // The available type of connection (WiFi, 3G, etc.) when connection was first | 150 // The available type of connection (WiFi, 3G, etc.) when connection was first |
151 // used. | 151 // used. |
152 const char* const connection_description_; | 152 const char* const connection_description_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 154 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace net | 157 } // namespace net |
158 | 158 |
159 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 159 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |