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

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

Issue 2367403005: Snackbar for promoting Data Saver to existing users (Closed)
Patch Set: rename "data saving" to "data savings" for consistency 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.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
index a6ee82792e689c61c9ffdf14683226f8ee302c18..fd1852f5b34382b0dc7579d13faecb437ed0ab18 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
@@ -155,6 +155,10 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver,
// daily original and received content lengths.
int64_t GetDataReductionLastUpdateTime();
+ // Returns the difference between the total original size of all HTTP content
+ // received from the network and the actual size of the HTTP content received.
+ int64_t GetTotalHttpContentLengthSaved();
+
// Returns aggregate received and original content lengths over the specified
// number of days, as well as the time these stats were last updated.
void GetContentLengths(unsigned int days,

Powered by Google App Engine
This is Rietveld 408576698