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

Unified Diff: net/base/network_quality.h

Issue 1144163008: Add in-memory caching of network quality estimates across network changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 6 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 | « no previous file | net/base/network_quality.cc » ('j') | net/base/network_quality_estimator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_quality.h
diff --git a/net/base/network_quality.h b/net/base/network_quality.h
index 328fb7084dc43fb5cb537d7103db128f55dfe87b..e4a51e4728b8a14924348086fbba4d7aefba7076 100644
--- a/net/base/network_quality.h
+++ b/net/base/network_quality.h
@@ -21,8 +21,12 @@ class NET_EXPORT_PRIVATE NetworkQuality {
NetworkQuality(const base::TimeDelta& rtt,
int32_t downstream_throughput_kbps);
+ NetworkQuality(const NetworkQuality& other);
+
~NetworkQuality();
+ NetworkQuality& operator=(const NetworkQuality& other);
+
// Returns the estimate of the round trip time.
const base::TimeDelta& rtt() const { return rtt_; }
@@ -34,10 +38,10 @@ class NET_EXPORT_PRIVATE NetworkQuality {
private:
// Estimated round trip time.
- const base::TimeDelta rtt_;
+ base::TimeDelta rtt_;
// Estimated downstream throughput in Kbps.
- const int32_t downstream_throughput_kbps_;
+ int32_t downstream_throughput_kbps_;
};
} // namespace net
« no previous file with comments | « no previous file | net/base/network_quality.cc » ('j') | net/base/network_quality_estimator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698