| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace test { | 22 namespace test { |
| 23 class QuicConnectionLoggerPeer; | 23 class QuicConnectionLoggerPeer; |
| 24 } // namespace test | 24 } // namespace test |
| 25 | 25 |
| 26 class CryptoHandshakeMessage; | 26 class CryptoHandshakeMessage; |
| 27 class CertVerifyResult; | 27 class CertVerifyResult; |
| 28 | 28 |
| 29 // This class is a debug visitor of a QuicConnection which logs | 29 // This class is a debug visitor of a QuicConnection which logs |
| 30 // events to |net_log|. | 30 // events to |net_log|. |
| 31 class NET_EXPORT_PRIVATE QuicConnectionLogger | 31 class NET_EXPORT_PRIVATE QuicConnectionLogger |
| 32 : public QuicConnectionDebugVisitor { | 32 : public QuicConnectionDebugVisitor, |
| 33 public QuicPacketCreator::DebugDelegate { |
| 33 public: | 34 public: |
| 34 QuicConnectionLogger( | 35 QuicConnectionLogger( |
| 35 QuicSpdySession* session, | 36 QuicSpdySession* session, |
| 36 const char* const connection_description, | 37 const char* const connection_description, |
| 37 scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher, | 38 scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher, |
| 38 const BoundNetLog& net_log); | 39 const BoundNetLog& net_log); |
| 39 | 40 |
| 40 ~QuicConnectionLogger() override; | 41 ~QuicConnectionLogger() override; |
| 41 | 42 |
| 42 // QuicPacketGenerator::DebugDelegateInterface | 43 // QuicPacketCreator::DebugDelegateInterface |
| 43 void OnFrameAddedToPacket(const QuicFrame& frame) override; | 44 void OnFrameAddedToPacket(const QuicFrame& frame) override; |
| 44 | 45 |
| 45 // QuicConnectionDebugVisitorInterface | 46 // QuicConnectionDebugVisitorInterface |
| 46 void OnPacketSent(const SerializedPacket& serialized_packet, | 47 void OnPacketSent(const SerializedPacket& serialized_packet, |
| 47 QuicPacketNumber original_packet_number, | 48 QuicPacketNumber original_packet_number, |
| 48 TransmissionType transmission_type, | 49 TransmissionType transmission_type, |
| 49 size_t encrypted_length, | 50 size_t encrypted_length, |
| 50 QuicTime sent_time) override; | 51 QuicTime sent_time) override; |
| 51 void OnPacketReceived(const IPEndPoint& self_address, | 52 void OnPacketReceived(const IPEndPoint& self_address, |
| 52 const IPEndPoint& peer_address, | 53 const IPEndPoint& peer_address, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Receives notifications regarding the performance of the underlying socket | 188 // Receives notifications regarding the performance of the underlying socket |
| 188 // for the QUIC connection. May be null. | 189 // for the QUIC connection. May be null. |
| 189 const scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher_; | 190 const scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher_; |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 192 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace net | 195 } // namespace net |
| 195 | 196 |
| 196 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 197 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
| OLD | NEW |