| 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/base/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/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/socket_performance_watcher.h" | |
| 25 #include "net/base/url_util.h" | 24 #include "net/base/url_util.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 |
| 29 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
| 30 #include "net/android/network_library.h" | 30 #include "net/android/network_library.h" |
| 31 #endif // OS_ANDROID | 31 #endif // OS_ANDROID |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 // Default value of the half life (in seconds) for computing time weighted | 35 // Default value of the half life (in seconds) for computing time weighted |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 | 1070 |
| 1071 NetworkQualityEstimator::NetworkQuality& | 1071 NetworkQualityEstimator::NetworkQuality& |
| 1072 NetworkQualityEstimator::NetworkQuality:: | 1072 NetworkQualityEstimator::NetworkQuality:: |
| 1073 operator=(const NetworkQuality& other) { | 1073 operator=(const NetworkQuality& other) { |
| 1074 rtt_ = other.rtt_; | 1074 rtt_ = other.rtt_; |
| 1075 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; | 1075 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; |
| 1076 return *this; | 1076 return *this; |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 } // namespace net | 1079 } // namespace net |
| OLD | NEW |