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

Unified Diff: net/nqe/network_quality.cc

Issue 2128793003: Factor out NetworkID and caching mechanism from n_q_e.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed asvitkine comments Created 4 years, 5 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.h ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality.cc
diff --git a/net/nqe/network_quality.cc b/net/nqe/network_quality.cc
index 94bcc80357d6efaa21e77cecb44b9a90ced042fc..1132b0eb9e5a437e8562c483093550c14c9209c7 100644
--- a/net/nqe/network_quality.cc
+++ b/net/nqe/network_quality.cc
@@ -5,9 +5,7 @@
#include "net/nqe/network_quality.h"
namespace net {
-
namespace nqe {
-
namespace internal {
base::TimeDelta InvalidRTT() {
@@ -40,8 +38,12 @@ NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) {
return *this;
}
-} // namespace internal
+bool NetworkQuality::operator==(const NetworkQuality& other) const {
+ return http_rtt_ == other.http_rtt_ &&
+ transport_rtt_ == other.transport_rtt_ &&
+ downstream_throughput_kbps_ == other.downstream_throughput_kbps_;
+}
+} // namespace internal
} // namespace nqe
-
} // namespace net
« no previous file with comments | « net/nqe/network_quality.h ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698