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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 explicit QuicConnectionLogger(const BoundNetLog& net_log); | 24 explicit QuicConnectionLogger(const BoundNetLog& net_log); |
25 | 25 |
26 virtual ~QuicConnectionLogger(); | 26 virtual ~QuicConnectionLogger(); |
27 | 27 |
28 // QuicPacketGenerator::DebugDelegateInterface | 28 // QuicPacketGenerator::DebugDelegateInterface |
29 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE; | 29 virtual void OnFrameAddedToPacket(const QuicFrame& frame) OVERRIDE; |
30 | 30 |
31 // QuicConnectionDebugVisitorInterface | 31 // QuicConnectionDebugVisitorInterface |
32 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, | 32 virtual void OnPacketSent(QuicPacketSequenceNumber sequence_number, |
33 EncryptionLevel level, | 33 EncryptionLevel level, |
| 34 TransmissionType transmission_type, |
34 const QuicEncryptedPacket& packet, | 35 const QuicEncryptedPacket& packet, |
35 WriteResult result) OVERRIDE; | 36 WriteResult result) OVERRIDE; |
36 virtual void OnPacketRetransmitted( | 37 virtual void OnPacketRetransmitted( |
37 QuicPacketSequenceNumber old_sequence_number, | 38 QuicPacketSequenceNumber old_sequence_number, |
38 QuicPacketSequenceNumber new_sequence_number) OVERRIDE; | 39 QuicPacketSequenceNumber new_sequence_number) OVERRIDE; |
39 virtual void OnPacketReceived(const IPEndPoint& self_address, | 40 virtual void OnPacketReceived(const IPEndPoint& self_address, |
40 const IPEndPoint& peer_address, | 41 const IPEndPoint& peer_address, |
41 const QuicEncryptedPacket& packet) OVERRIDE; | 42 const QuicEncryptedPacket& packet) OVERRIDE; |
42 virtual void OnProtocolVersionMismatch(QuicVersion version) OVERRIDE; | 43 virtual void OnProtocolVersionMismatch(QuicVersion version) OVERRIDE; |
43 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; | 44 virtual void OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::bitset<101> packets_received_; | 96 std::bitset<101> packets_received_; |
96 // The available type of connection (WiFi, 3G, etc.) when connection was first | 97 // The available type of connection (WiFi, 3G, etc.) when connection was first |
97 // used. | 98 // used. |
98 NetworkChangeNotifier::ConnectionType connection_type_; | 99 NetworkChangeNotifier::ConnectionType connection_type_; |
99 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); | 100 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace net | 103 } // namespace net |
103 | 104 |
104 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ | 105 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ |
OLD | NEW |