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

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

Issue 415333005: Revert 285446 "Log the certificate subjects from the server cert..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/net/quic/quic_client_session.cc ('k') | trunk/src/net/quic/quic_connection_logger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15
16 namespace net { 16 namespace net {
17 17
18 class CryptoHandshakeMessage; 18 class CryptoHandshakeMessage;
19 class CertVerifyResult;
20 19
21 // This class is a debug visitor of a QuicConnection which logs 20 // This class is a debug visitor of a QuicConnection which logs
22 // events to |net_log|. 21 // events to |net_log|.
23 class NET_EXPORT_PRIVATE QuicConnectionLogger 22 class NET_EXPORT_PRIVATE QuicConnectionLogger
24 : public QuicConnectionDebugVisitor { 23 : public QuicConnectionDebugVisitor {
25 public: 24 public:
26 explicit QuicConnectionLogger(const BoundNetLog& net_log); 25 explicit QuicConnectionLogger(const BoundNetLog& net_log);
27 26
28 virtual ~QuicConnectionLogger(); 27 virtual ~QuicConnectionLogger();
29 28
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 64
66 void OnCryptoHandshakeMessageReceived( 65 void OnCryptoHandshakeMessageReceived(
67 const CryptoHandshakeMessage& message); 66 const CryptoHandshakeMessage& message);
68 void OnCryptoHandshakeMessageSent( 67 void OnCryptoHandshakeMessageSent(
69 const CryptoHandshakeMessage& message); 68 const CryptoHandshakeMessage& message);
70 void OnConnectionClosed(QuicErrorCode error, bool from_peer); 69 void OnConnectionClosed(QuicErrorCode error, bool from_peer);
71 void OnSuccessfulVersionNegotiation(const QuicVersion& version); 70 void OnSuccessfulVersionNegotiation(const QuicVersion& version);
72 void UpdateReceivedFrameCounts(QuicStreamId stream_id, 71 void UpdateReceivedFrameCounts(QuicStreamId stream_id,
73 int num_frames_received, 72 int num_frames_received,
74 int num_duplicate_frames_received); 73 int num_duplicate_frames_received);
75 void OnCertificateVerified(const CertVerifyResult& result);
76 74
77 private: 75 private:
78 // Do a factory get for a histogram for recording data, about individual 76 // Do a factory get for a histogram for recording data, about individual
79 // packet sequence numbers, that was gathered in the vectors 77 // packet sequence numbers, that was gathered in the vectors
80 // received_packets_ and received_acks_. |statistic_name| identifies which 78 // received_packets_ and received_acks_. |statistic_name| identifies which
81 // element of data is recorded, and is used to form the histogram name. 79 // element of data is recorded, and is used to form the histogram name.
82 base::HistogramBase* GetPacketSequenceNumberHistogram( 80 base::HistogramBase* GetPacketSequenceNumberHistogram(
83 const char* statistic_name) const; 81 const char* statistic_name) const;
84 // Do a factory get for a histogram to record a 6-packet loss-sequence as a 82 // Do a factory get for a histogram to record a 6-packet loss-sequence as a
85 // sample. The histogram will record the 64 distinct possible combinations. 83 // sample. The histogram will record the 64 distinct possible combinations.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // The available type of connection (WiFi, 3G, etc.) when connection was first 148 // The available type of connection (WiFi, 3G, etc.) when connection was first
151 // used. 149 // used.
152 const char* const connection_description_; 150 const char* const connection_description_;
153 151
154 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger); 152 DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
155 }; 153 };
156 154
157 } // namespace net 155 } // namespace net
158 156
159 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_ 157 #endif // NET_QUIC_QUIC_CONNECTION_LOGGER_H_
OLDNEW
« no previous file with comments | « trunk/src/net/quic/quic_client_session.cc ('k') | trunk/src/net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698