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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.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_compression_stats.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index 3dfcf86612a6573dac033676c81e367519035995..236501fc82f839ae4ad6739a86469eb85ff78558 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -93,6 +93,13 @@ class DataReductionProxyCompressionStats {
// Clears all data saving statistics.
void ClearDataSavingStatistics();
+ // Returns the total size of all HTTP content received from the network.
+ int64_t GetHttpReceivedContentLength();
+
+ // Returns the value the total original size of all HTTP content received from
+ // the network.
+ int64_t GetHttpOriginalContentLength();
+
// Returns a list of all the daily content lengths.
ContentLengthList GetDailyContentLengths(const char* pref_name);

Powered by Google App Engine
This is Rietveld 408576698