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

Unified Diff: net/nqe/network_quality_estimator.cc

Issue 1898603002: Move Network Quality Estimator files to //net/nqe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, removed //net/socket/OWNERS Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/nqe/network_quality_estimator.h ('k') | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.cc
diff --git a/net/base/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
similarity index 99%
rename from net/base/network_quality_estimator.cc
rename to net/nqe/network_quality_estimator.cc
index a9ad1b91699c14769fe630419e746a42f89da024..1f720c8f81bd2f49f5932143936814a1de0d3837 100644
--- a/net/base/network_quality_estimator.cc
+++ b/net/nqe/network_quality_estimator.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "net/base/network_quality_estimator.h"
+#include "net/nqe/network_quality_estimator.h"
#include <float.h>
#include <algorithm>
@@ -21,8 +21,8 @@
#include "net/base/load_flags.h"
#include "net/base/load_timing_info.h"
#include "net/base/network_interfaces.h"
-#include "net/base/socket_performance_watcher.h"
#include "net/base/url_util.h"
+#include "net/socket/socket_performance_watcher.h"
#include "net/url_request/url_request.h"
#include "url/gurl.h"
@@ -1117,17 +1117,14 @@ void NetworkQualityEstimator::NotifyObserversOfThroughput(
NetworkQualityEstimator::CachedNetworkQuality::CachedNetworkQuality(
const NetworkQuality& network_quality)
: last_update_time_(base::TimeTicks::Now()),
- network_quality_(network_quality) {
-}
+ network_quality_(network_quality) {}
NetworkQualityEstimator::CachedNetworkQuality::CachedNetworkQuality(
const CachedNetworkQuality& other)
: last_update_time_(other.last_update_time_),
- network_quality_(other.network_quality_) {
-}
+ network_quality_(other.network_quality_) {}
-NetworkQualityEstimator::CachedNetworkQuality::~CachedNetworkQuality() {
-}
+NetworkQualityEstimator::CachedNetworkQuality::~CachedNetworkQuality() {}
bool NetworkQualityEstimator::CachedNetworkQuality::OlderThan(
const CachedNetworkQuality& cached_network_quality) const {
@@ -1153,8 +1150,8 @@ NetworkQualityEstimator::NetworkQuality::NetworkQuality(
NetworkQualityEstimator::NetworkQuality::~NetworkQuality() {}
NetworkQualityEstimator::NetworkQuality&
- NetworkQualityEstimator::NetworkQuality::
- operator=(const NetworkQuality& other) {
+NetworkQualityEstimator::NetworkQuality::operator=(
+ const NetworkQuality& other) {
rtt_ = other.rtt_;
downstream_throughput_kbps_ = other.downstream_throughput_kbps_;
return *this;
« no previous file with comments | « net/nqe/network_quality_estimator.h ('k') | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698