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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc

Issue 2367403005: Snackbar for promoting Data Saver to existing users (Closed)
Patch Set: add space, clear on data saving clear Created 4 years, 2 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
index 9114b69ae8e7d32fa4e63c672295c7d6f05e0667..9c1c393664268dbf4a397039eba3d36c7606bfed 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
@@ -151,6 +151,20 @@ int64_t DataReductionProxySettings::GetDataReductionLastUpdateTime() {
data_reduction_proxy_service_->compression_stats()->GetLastUpdateTime();
}
+int64_t DataReductionProxySettings::GetHttpReceivedContentLength() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(data_reduction_proxy_service_->compression_stats());
+ return data_reduction_proxy_service_->compression_stats()
+ ->GetHttpReceivedContentLength();
+}
+
+int64_t DataReductionProxySettings::GetHttpOriginalContentLength() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(data_reduction_proxy_service_->compression_stats());
+ return data_reduction_proxy_service_->compression_stats()
+ ->GetHttpOriginalContentLength();
+}
+
void DataReductionProxySettings::SetUnreachable(bool unreachable) {
unreachable_ = unreachable;
}

Powered by Google App Engine
This is Rietveld 408576698