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

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

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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(
28 QuicVersionTag version) OVERRIDE;
27 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; 29 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE;
28 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; 30 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE;
29 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE; 31 virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE;
30 virtual void OnCongestionFeedbackFrame( 32 virtual void OnCongestionFeedbackFrame(
31 const QuicCongestionFeedbackFrame& frame) OVERRIDE; 33 const QuicCongestionFeedbackFrame& frame) OVERRIDE;
32 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE; 34 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE;
33 virtual void OnConnectionCloseFrame( 35 virtual void OnConnectionCloseFrame(
34 const QuicConnectionCloseFrame& frame) OVERRIDE; 36 const QuicConnectionCloseFrame& frame) OVERRIDE;
35 virtual void OnPublicResetPacket( 37 virtual void OnPublicResetPacket(
36 const QuicPublicResetPacket& packet) OVERRIDE; 38 const QuicPublicResetPacket& packet) OVERRIDE;
39 virtual void OnVersionNegotiationPacket(
40 const QuicVersionNegotiationPacket& packet) OVERRIDE;
37 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header, 41 virtual void OnRevivedPacket(const QuicPacketHeader& revived_header,
38 base::StringPiece payload) OVERRIDE; 42 base::StringPiece payload) OVERRIDE;
39 43
40 private: 44 private:
41 BoundNetLog net_log_; 45 BoundNetLog net_log_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 47 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
44 }; 48 };
45 49
46 } // namespace net 50 } // namespace net
47 51
48 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 52 #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