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 13 matching lines...) Expand all Loading... |
24 // This class is a debug visitor of a QuicConnection which logs | 24 // This class is a debug visitor of a QuicConnection which logs |
25 // events to |net_log|. | 25 // events to |net_log|. |
26 class NET_EXPORT_PRIVATE QuicConnectionLogger | 26 class NET_EXPORT_PRIVATE QuicConnectionLogger |
27 : public QuicConnectionDebugVisitor { | 27 : public QuicConnectionDebugVisitor { |
28 public: | 28 public: |
29 explicit QuicConnectionLogger(const BoundNetLog& net_log); | 29 explicit QuicConnectionLogger(const BoundNetLog& net_log); |
30 | 30 |
31 virtual ~QuicConnectionLogger(); | 31 virtual ~QuicConnectionLogger(); |
32 | 32 |
33 // QuicPacketGenerator::DebugDelegateInterface | 33 // QuicPacketGenerator::DebugDelegateInterface |
34 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE; | 34 virtual void OnFrameAddedToPacket(const QuicFrame& frame) override; |
35 | 35 |
36 // QuicConnectionDebugVisitorInterface | 36 // QuicConnectionDebugVisitorInterface |
37 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, | 37 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, |
38 QuicPacketSequenceNumber original_sequence_number, | 38 QuicPacketSequenceNumber original_sequence_number, |
39 EncryptionLevel level, | 39 EncryptionLevel level, |
40 TransmissionType transmission_type, | 40 TransmissionType transmission_type, |
41 const QuicEncryptedPacket& packet, | 41 const QuicEncryptedPacket& packet, |
42 WriteResult result) OVERRIDE; | 42 WriteResult result) override; |
43 virtual void OnPacketReceived(const IPEndPoint& self_address, | 43 virtual void OnPacketReceived(const IPEndPoint& self_address, |
44 const IPEndPoint& peer_address, | 44 const IPEndPoint& peer_address, |
45 const QuicEncryptedPacket& packet) OVERRIDE; | 45 const QuicEncryptedPacket& packet) override; |
46 virtual void OnIncorrectConnectionId( | 46 virtual void OnIncorrectConnectionId( |
47 QuicConnectionId connection_id) OVERRIDE; | 47 QuicConnectionId connection_id) override; |
48 virtual void OnUndecryptablePacket() OVERRIDE; | 48 virtual void OnUndecryptablePacket() override; |
49 virtual void OnDuplicatePacket(QuicPacketSequenceNumber sequence_number) | 49 virtual void OnDuplicatePacket(QuicPacketSequenceNumber sequence_number) |
50 OVERRIDE; | 50 override; |
51 virtual void OnProtocolVersionMismatch(QuicVersion version) OVERRIDE; | 51 virtual void OnProtocolVersionMismatch(QuicVersion version) override; |
52 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; | 52 virtual void OnPacketHeader(const QuicPacketHeader& header) override; |
53 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; | 53 virtual void OnStreamFrame(const QuicStreamFrame& frame) override; |
54 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE; | 54 virtual void OnAckFrame(const QuicAckFrame& frame) override; |
55 virtual void OnCongestionFeedbackFrame( | 55 virtual void OnCongestionFeedbackFrame( |
56 const QuicCongestionFeedbackFrame& frame) OVERRIDE; | 56 const QuicCongestionFeedbackFrame& frame) override; |
57 virtual void OnStopWaitingFrame(const QuicStopWaitingFrame& frame) OVERRIDE; | 57 virtual void OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; |
58 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; | 58 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) override; |
59 virtual void OnConnectionCloseFrame( | 59 virtual void OnConnectionCloseFrame( |
60 const QuicConnectionCloseFrame& frame) OVERRIDE; | 60 const QuicConnectionCloseFrame& frame) override; |
61 virtual void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) OVERRIDE; | 61 virtual void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; |
62 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) OVERRIDE; | 62 virtual void OnBlockedFrame(const QuicBlockedFrame& frame) override; |
63 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE; | 63 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) override; |
64 virtual void OnPingFrame(const QuicPingFrame& frame) OVERRIDE; | 64 virtual void OnPingFrame(const QuicPingFrame& frame) override; |
65 virtual void OnPublicResetPacket( | 65 virtual void OnPublicResetPacket( |
66 const QuicPublicResetPacket& packet) OVERRIDE; | 66 const QuicPublicResetPacket& packet) override; |
67 virtual void OnVersionNegotiationPacket( | 67 virtual void OnVersionNegotiationPacket( |
68 const QuicVersionNegotiationPacket& packet) OVERRIDE; | 68 const QuicVersionNegotiationPacket& packet) override; |
69 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, | 69 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, |
70 base::StringPiece payload) OVERRIDE; | 70 base::StringPiece payload) override; |
71 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; | 71 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; |
72 virtual void OnSuccessfulVersionNegotiation( | 72 virtual void OnSuccessfulVersionNegotiation( |
73 const QuicVersion& version) OVERRIDE; | 73 const QuicVersion& version) override; |
74 | 74 |
75 void OnCryptoHandshakeMessageReceived( | 75 void OnCryptoHandshakeMessageReceived( |
76 const CryptoHandshakeMessage& message); | 76 const CryptoHandshakeMessage& message); |
77 void OnCryptoHandshakeMessageSent( | 77 void OnCryptoHandshakeMessageSent( |
78 const CryptoHandshakeMessage& message); | 78 const CryptoHandshakeMessage& message); |
79 void UpdateReceivedFrameCounts(QuicStreamId stream_id, | 79 void UpdateReceivedFrameCounts(QuicStreamId stream_id, |
80 int num_frames_received, | 80 int num_frames_received, |
81 int num_duplicate_frames_received); | 81 int num_duplicate_frames_received); |
82 void OnCertificateVerified(const CertVerifyResult& result); | 82 void OnCertificateVerified(const CertVerifyResult& result); |
83 | 83 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // The available type of connection (WiFi, 3G, etc.) when connection was first | 165 // The available type of connection (WiFi, 3G, etc.) when connection was first |
166 // used. | 166 // used. |
167 const char* const connection_description_; | 167 const char* const connection_description_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 169 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
170 }; | 170 }; |
171 | 171 |
172 } // namespace net | 172 } // namespace net |
173 | 173 |
174 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 174 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |