| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; | 51 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; |
| 52 virtual void OnConnectionCloseFrame( | 52 virtual void OnConnectionCloseFrame( |
| 53 const QuicConnectionCloseFrame& frame) OVERRIDE; | 53 const QuicConnectionCloseFrame& frame) OVERRIDE; |
| 54 virtual void OnPublicResetPacket( | 54 virtual void OnPublicResetPacket( |
| 55 const QuicPublicResetPacket& packet) OVERRIDE; | 55 const QuicPublicResetPacket& packet) OVERRIDE; |
| 56 virtual void OnVersionNegotiationPacket( | 56 virtual void OnVersionNegotiationPacket( |
| 57 const QuicVersionNegotiationPacket& packet) OVERRIDE; | 57 const QuicVersionNegotiationPacket& packet) OVERRIDE; |
| 58 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, | 58 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, |
| 59 base::StringPiece payload) OVERRIDE; | 59 base::StringPiece payload) OVERRIDE; |
| 60 | 60 |
| 61 void OnCryptoHandshakeMessageReceived( | 61 void OnCryptoHandshakeMessageReceived(const CryptoHandshakeMessage& message); |
| 62 const CryptoHandshakeMessage& message); | 62 void OnCryptoHandshakeMessageSent(const CryptoHandshakeMessage& message); |
| 63 void OnCryptoHandshakeMessageSent( | |
| 64 const CryptoHandshakeMessage& message); | |
| 65 void OnConnectionClosed(QuicErrorCode error, bool from_peer); | 63 void OnConnectionClosed(QuicErrorCode error, bool from_peer); |
| 66 void OnSuccessfulVersionNegotiation(const QuicVersion& version); | 64 void OnSuccessfulVersionNegotiation(const QuicVersion& version); |
| 67 void UpdateReceivedFrameCounts(QuicStreamId stream_id, | 65 void UpdateReceivedFrameCounts(QuicStreamId stream_id, |
| 68 int num_frames_received, | 66 int num_frames_received, |
| 69 int num_duplicate_frames_received); | 67 int num_duplicate_frames_received); |
| 70 | 68 |
| 71 private: | 69 private: |
| 72 // Do a factory get for a histogram for recording data, about individual | 70 // Do a factory get for a histogram for recording data, about individual |
| 73 // packet sequence numbers, that was gathered in the vectors | 71 // packet sequence numbers, that was gathered in the vectors |
| 74 // received_packets_ and received_acks_. |statistic_name| identifies which | 72 // received_packets_ and received_acks_. |statistic_name| identifies which |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // The available type of connection (WiFi, 3G, etc.) when connection was first | 140 // The available type of connection (WiFi, 3G, etc.) when connection was first |
| 143 // used. | 141 // used. |
| 144 const char* const connection_description_; | 142 const char* const connection_description_; |
| 145 | 143 |
| 146 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 144 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 147 }; | 145 }; |
| 148 | 146 |
| 149 } // namespace net | 147 } // namespace net |
| 150 | 148 |
| 151 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 149 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |