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

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: removed const char* const as return value to fix ios_rel_device_ninja_ng compile error 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/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 #include "net/quic/quic_session.h" 15 #include "net/quic/quic_session.h"
16 16
17 namespace net { 17 namespace net {
18 namespace test { 18 namespace test {
19 class QuicConnectionLoggerPeer; 19 class QuicConnectionLoggerPeer;
20 } // namespace test 20 } // namespace test
21 21
22 class CryptoHandshakeMessage; 22 class CryptoHandshakeMessage;
23 class CertVerifyResult; 23 class CertVerifyResult;
24 24
25 // This class is a debug visitor of a QuicConnection which logs 25 // This class is a debug visitor of a QuicConnection which logs
26 // events to |net_log|. 26 // events to |net_log|.
27 class NET_EXPORT_PRIVATE QuicConnectionLogger 27 class NET_EXPORT_PRIVATE QuicConnectionLogger
28 : public QuicConnectionDebugVisitor { 28 : public QuicConnectionDebugVisitor {
29 public: 29 public:
30 QuicConnectionLogger(QuicSession* session, const BoundNetLog& net_log); 30 QuicConnectionLogger(QuicSession* session,
31 const char* const connection_description,
32 const BoundNetLog& net_log);
31 33
32 ~QuicConnectionLogger() override; 34 ~QuicConnectionLogger() override;
33 35
34 // QuicPacketGenerator::DebugDelegateInterface 36 // QuicPacketGenerator::DebugDelegateInterface
35 void OnFrameAddedToPacket(const QuicFrame& frame) override; 37 void OnFrameAddedToPacket(const QuicFrame& frame) override;
36 38
37 // QuicConnectionDebugVisitorInterface 39 // QuicConnectionDebugVisitorInterface
38 void OnPacketSent(const SerializedPacket& serialized_packet, 40 void OnPacketSent(const SerializedPacket& serialized_packet,
39 QuicPacketSequenceNumber original_sequence_number, 41 QuicPacketSequenceNumber original_sequence_number,
40 EncryptionLevel level, 42 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 173 // The available type of connection (WiFi, 3G, etc.) when connection was first
172 // used. 174 // used.
173 const char* const connection_description_; 175 const char* const connection_description_;
174 176
175 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 177 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
176 }; 178 };
177 179
178 } // namespace net 180 } // namespace net
179 181
180 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 182 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698