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" |
11 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
12 #include "net/base/network_change_notifier.h" | 12 #include "net/base/network_change_notifier.h" |
13 #include "net/quic/quic_connection.h" | 13 #include "net/quic/quic_connection.h" |
14 #include "net/quic/quic_protocol.h" | 14 #include "net/quic/quic_protocol.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class CryptoHandshakeMessage; | 18 class CryptoHandshakeMessage; |
19 | 19 |
20 // This class is a debug visitor of a QuicConnection which logs | 20 // This class is a debug visitor of a QuicConnection which logs |
21 // events to |net_log|. | 21 // events to |net_log|. |
22 class NET_EXPORT_PRIVATE QuicConnectionLogger | 22 class NET_EXPORT_PRIVATE QuicConnectionLogger |
23 : public QuicConnectionDebugVisitorInterface { | 23 : public QuicConnectionDebugVisitor { |
24 public: | 24 public: |
25 explicit QuicConnectionLogger(const BoundNetLog& net_log); | 25 explicit QuicConnectionLogger(const BoundNetLog& net_log); |
26 | 26 |
27 virtual ~QuicConnectionLogger(); | 27 virtual ~QuicConnectionLogger(); |
28 | 28 |
29 // QuicPacketGenerator::DebugDelegateInterface | 29 // QuicPacketGenerator::DebugDelegateInterface |
30 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE; | 30 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE; |
31 | 31 |
32 // QuicConnectionDebugVisitorInterface | 32 // QuicConnectionDebugVisitorInterface |
33 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, | 33 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // The available type of connection (WiFi, 3G, etc.) when connection was first | 144 // The available type of connection (WiFi, 3G, etc.) when connection was first |
145 // used. | 145 // used. |
146 const char* const connection_description_; | 146 const char* const connection_description_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 148 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace net | 151 } // namespace net |
152 | 152 |
153 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 153 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |