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 #include "net/quic/quic_connection_logger.h" | 5 #include "net/quic/quic_connection_logger.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
14 #include "net/quic/crypto/crypto_handshake.h" | 14 #include "net/quic/crypto/crypto_handshake_message.h" |
15 | 15 |
16 using std::string; | 16 using std::string; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 base::Value* NetLogQuicPacketCallback(const IPEndPoint* self_address, | 22 base::Value* NetLogQuicPacketCallback(const IPEndPoint* self_address, |
23 const IPEndPoint* peer_address, | 23 const IPEndPoint* peer_address, |
24 size_t packet_size, | 24 size_t packet_size, |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 } | 436 } |
437 | 437 |
438 void QuicConnectionLogger::OnSuccessfulVersionNegotiation( | 438 void QuicConnectionLogger::OnSuccessfulVersionNegotiation( |
439 const QuicVersion& version) { | 439 const QuicVersion& version) { |
440 string quic_version = QuicVersionToString(version); | 440 string quic_version = QuicVersionToString(version); |
441 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_VERSION_NEGOTIATED, | 441 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_VERSION_NEGOTIATED, |
442 NetLog::StringCallback("version", &quic_version)); | 442 NetLog::StringCallback("version", &quic_version)); |
443 } | 443 } |
444 | 444 |
445 } // namespace net | 445 } // namespace net |
OLD | NEW |