Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(929)

Side by Side Diff: net/quic/quic_connection_logger.h

Issue 17518002: Add logging to the QUIC write path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed one Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class BoundNetLog; 12 class BoundNetLog;
13 13
14 // This class is a debug visitor of a QuicConnection which logs 14 // This class is a debug visitor of a QuicConnection which logs
15 // events to |net_log|. 15 // events to |net_log|.
16 class NET_EXPORT_PRIVATE QuicConnectionLogger 16 class NET_EXPORT_PRIVATE QuicConnectionLogger
17 : public QuicConnectionDebugVisitorInterface { 17 : public QuicConnectionDebugVisitorInterface {
18 public: 18 public:
19 explicit QuicConnectionLogger(const BoundNetLog& net_log); 19 explicit QuicConnectionLogger(const BoundNetLog& net_log);
20 20
21 virtual ~QuicConnectionLogger(); 21 virtual ~QuicConnectionLogger();
22 22
23 // QuicPacketGenerator::DebugDelegateInterface
24 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE;
25
23 // QuicConnectionDebugVisitorInterface 26 // QuicConnectionDebugVisitorInterface
27 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number,
28 EncryptionLevel level,
29 const QuicEncryptedPacket& packet,
30 int rv) OVERRIDE;
31
24 virtual void OnPacketReceived(const IPEndPoint& self_address, 32 virtual void OnPacketReceived(const IPEndPoint& self_address,
25 const IPEndPoint& peer_address, 33 const IPEndPoint& peer_address,
26 const QuicEncryptedPacket& packet) OVERRIDE; 34 const QuicEncryptedPacket& packet) OVERRIDE;
27 virtual void OnProtocolVersionMismatch(QuicTag version) OVERRIDE; 35 virtual void OnProtocolVersionMismatch(QuicTag version) OVERRIDE;
28 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; 36 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE;
29 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; 37 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE;
30 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE; 38 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE;
31 virtual void OnCongestionFeedbackFrame( 39 virtual void OnCongestionFeedbackFrame(
32 const QuicCongestionFeedbackFrame& frame) OVERRIDE; 40 const QuicCongestionFeedbackFrame& frame) OVERRIDE;
33 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; 41 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE;
34 virtual void OnConnectionCloseFrame( 42 virtual void OnConnectionCloseFrame(
35 const QuicConnectionCloseFrame& frame) OVERRIDE; 43 const QuicConnectionCloseFrame& frame) OVERRIDE;
36 virtual void OnPublicResetPacket( 44 virtual void OnPublicResetPacket(
37 const QuicPublicResetPacket& packet) OVERRIDE; 45 const QuicPublicResetPacket& packet) OVERRIDE;
38 virtual void OnVersionNegotiationPacket( 46 virtual void OnVersionNegotiationPacket(
39 const QuicVersionNegotiationPacket& packet) OVERRIDE; 47 const QuicVersionNegotiationPacket& packet) OVERRIDE;
40 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, 48 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header,
41 base::StringPiece payload) OVERRIDE; 49 base::StringPiece payload) OVERRIDE;
42 50
43 private: 51 private:
44 BoundNetLog net_log_; 52 BoundNetLog net_log_;
45 53
46 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 54 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
47 }; 55 };
48 56
49 } // namespace net 57 } // namespace net
50 58
51 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 59 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698