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

Side by Side Diff: net/quic/chromium/quic_connection_logger.cc

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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 #include "net/quic/chromium/quic_connection_logger.h" 5 #include "net/quic/chromium/quic_connection_logger.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/metrics/histogram_base.h" 15 #include "base/metrics/histogram_base.h"
16 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
17 #include "base/metrics/sparse_histogram.h" 17 #include "base/metrics/sparse_histogram.h"
18 #include "base/profiler/scoped_tracker.h" 18 #include "base/profiler/scoped_tracker.h"
19 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "net/base/ip_address.h" 21 #include "net/base/ip_address.h"
22 #include "net/cert/x509_certificate.h" 22 #include "net/cert/x509_certificate.h"
23 #include "net/log/net_log.h" 23 #include "net/log/net_log.h"
24 #include "net/log/net_log_capture_mode.h" 24 #include "net/log/net_log_capture_mode.h"
25 #include "net/log/net_log_event_type.h" 25 #include "net/log/net_log_event_type.h"
26 #include "net/quic/core/crypto/crypto_handshake_message.h" 26 #include "net/quic/core/crypto/crypto_handshake_message.h"
27 #include "net/quic/core/crypto/crypto_protocol.h" 27 #include "net/quic/core/crypto/crypto_protocol.h"
28 #include "net/quic/core/quic_address_mismatch.h" 28 #include "net/quic/core/quic_address_mismatch.h"
29 #include "net/quic/core/quic_protocol.h" 29 #include "net/quic/core/quic_packets.h"
30 #include "net/quic/core/quic_socket_address_coder.h" 30 #include "net/quic/core/quic_socket_address_coder.h"
31 #include "net/quic/core/quic_time.h" 31 #include "net/quic/core/quic_time.h"
32 32
33 using base::StringPiece; 33 using base::StringPiece;
34 using std::string; 34 using std::string;
35 35
36 namespace net { 36 namespace net {
37 37
38 namespace { 38 namespace {
39 39
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 string prefix("Net.QuicSession.PacketLossRate_"); 706 string prefix("Net.QuicSession.PacketLossRate_");
707 base::HistogramBase* histogram = base::Histogram::FactoryGet( 707 base::HistogramBase* histogram = base::Histogram::FactoryGet(
708 prefix + connection_description_, 1, 1000, 75, 708 prefix + connection_description_, 1, 1000, 75,
709 base::HistogramBase::kUmaTargetedHistogramFlag); 709 base::HistogramBase::kUmaTargetedHistogramFlag);
710 histogram->Add(static_cast<base::HistogramBase::Sample>( 710 histogram->Add(static_cast<base::HistogramBase::Sample>(
711 ReceivedPacketLossRate() * 1000)); 711 ReceivedPacketLossRate() * 1000));
712 } 712 }
713 713
714 } // namespace net 714 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_connection_logger.h ('k') | net/quic/chromium/quic_end_to_end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698