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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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_helper_test.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 // QuicConnectionDebugVisitorInterface 23 // QuicConnectionDebugVisitorInterface
24 virtual void OnPacketReceived(const IPEndPoint& self_address, 24 virtual void OnPacketReceived(const IPEndPoint& self_address,
25 const IPEndPoint& peer_address, 25 const IPEndPoint& peer_address,
26 const QuicEncryptedPacket& packet) OVERRIDE; 26 const QuicEncryptedPacket& packet) OVERRIDE;
27 virtual void OnProtocolVersionMismatch( 27 virtual void OnProtocolVersionMismatch(QuicTag version) OVERRIDE;
28 QuicVersionTag version) OVERRIDE;
29 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; 28 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE;
30 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; 29 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE;
31 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE; 30 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE;
32 virtual void OnCongestionFeedbackFrame( 31 virtual void OnCongestionFeedbackFrame(
33 const QuicCongestionFeedbackFrame& frame) OVERRIDE; 32 const QuicCongestionFeedbackFrame& frame) OVERRIDE;
34 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; 33 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE;
35 virtual void OnConnectionCloseFrame( 34 virtual void OnConnectionCloseFrame(
36 const QuicConnectionCloseFrame& frame) OVERRIDE; 35 const QuicConnectionCloseFrame& frame) OVERRIDE;
37 virtual void OnPublicResetPacket( 36 virtual void OnPublicResetPacket(
38 const QuicPublicResetPacket& packet) OVERRIDE; 37 const QuicPublicResetPacket& packet) OVERRIDE;
39 virtual void OnVersionNegotiationPacket( 38 virtual void OnVersionNegotiationPacket(
40 const QuicVersionNegotiationPacket& packet) OVERRIDE; 39 const QuicVersionNegotiationPacket& packet) OVERRIDE;
41 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, 40 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header,
42 base::StringPiece payload) OVERRIDE; 41 base::StringPiece payload) OVERRIDE;
43 42
44 private: 43 private:
45 BoundNetLog net_log_; 44 BoundNetLog net_log_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 46 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
48 }; 47 };
49 48
50 } // namespace net 49 } // namespace net
51 50
52 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 51 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_helper_test.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698