OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/nqe/network_quality_estimator.h" | 5 #include "net/nqe/network_quality_estimator.h" |
6 | 6 |
7 #include <float.h> | 7 #include <float.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/metrics/histogram_base.h" | 16 #include "base/metrics/histogram_base.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "net/base/load_flags.h" | 21 #include "net/base/load_flags.h" |
22 #include "net/base/load_timing_info.h" | 22 #include "net/base/load_timing_info.h" |
23 #include "net/base/network_interfaces.h" | 23 #include "net/base/network_interfaces.h" |
24 #include "net/base/url_util.h" | 24 #include "net/base/url_util.h" |
25 #include "net/socket/socket_performance_watcher.h" | 25 #include "net/socket/socket_performance_watcher.h" |
26 #include "net/url_request/url_request.h" | 26 #include "net/url_request/url_request.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
28 | 28 |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 | 1151 |
1152 NetworkQualityEstimator::NetworkQuality& | 1152 NetworkQualityEstimator::NetworkQuality& |
1153 NetworkQualityEstimator::NetworkQuality::operator=( | 1153 NetworkQualityEstimator::NetworkQuality::operator=( |
1154 const NetworkQuality& other) { | 1154 const NetworkQuality& other) { |
1155 rtt_ = other.rtt_; | 1155 rtt_ = other.rtt_; |
1156 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; | 1156 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; |
1157 return *this; | 1157 return *this; |
1158 } | 1158 } |
1159 | 1159 |
1160 } // namespace net | 1160 } // namespace net |
OLD | NEW |