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

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

Issue 944883003: QUIC - Cache the connection type and connection description. Make the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move description caching into a distinct class Created 5 years, 10 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
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 <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/network_connection.h"
13 #include "net/quic/quic_connection.h" 14 #include "net/quic/quic_connection.h"
14 #include "net/quic/quic_protocol.h" 15 #include "net/quic/quic_protocol.h"
15 #include "net/quic/quic_session.h" 16 #include "net/quic/quic_session.h"
16 17
17 namespace net { 18 namespace net {
18 namespace test { 19 namespace test {
19 class QuicConnectionLoggerPeer; 20 class QuicConnectionLoggerPeer;
20 } // namespace test 21 } // namespace test
21 22
22 class CryptoHandshakeMessage; 23 class CryptoHandshakeMessage;
23 class CertVerifyResult; 24 class CertVerifyResult;
24 25
25 // This class is a debug visitor of a QuicConnection which logs 26 // This class is a debug visitor of a QuicConnection which logs
26 // events to |net_log|. 27 // events to |net_log|.
27 class NET_EXPORT_PRIVATE QuicConnectionLogger 28 class NET_EXPORT_PRIVATE QuicConnectionLogger
28 : public QuicConnectionDebugVisitor { 29 : public QuicConnectionDebugVisitor {
29 public: 30 public:
30 QuicConnectionLogger(QuicSession* session, const BoundNetLog& net_log); 31 QuicConnectionLogger(QuicSession* session,
32 NetworkConnection* network_connection,
33 const BoundNetLog& net_log);
31 34
32 ~QuicConnectionLogger() override; 35 ~QuicConnectionLogger() override;
33 36
34 // QuicPacketGenerator::DebugDelegateInterface 37 // QuicPacketGenerator::DebugDelegateInterface
35 void OnFrameAddedToPacket(const QuicFrame& frame) override; 38 void OnFrameAddedToPacket(const QuicFrame& frame) override;
36 39
37 // QuicConnectionDebugVisitorInterface 40 // QuicConnectionDebugVisitorInterface
38 void OnPacketSent(const SerializedPacket& serialized_packet, 41 void OnPacketSent(const SerializedPacket& serialized_packet,
39 QuicPacketSequenceNumber original_sequence_number, 42 QuicPacketSequenceNumber original_sequence_number,
40 EncryptionLevel level, 43 EncryptionLevel level,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // The available type of connection (WiFi, 3G, etc.) when connection was first 174 // The available type of connection (WiFi, 3G, etc.) when connection was first
172 // used. 175 // used.
173 const char* const connection_description_; 176 const char* const connection_description_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 178 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
176 }; 179 };
177 180
178 } // namespace net 181 } // namespace net
179 182
180 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 183 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698