summaryrefslogtreecommitdiff
path: root/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-17 13:57:45 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-19 13:44:40 +0000
commit6ec7b8da05d21a3878bd21c691b41e675d74bb1c (patch)
treeb87f250bc19413750b9bb9cdbf2da20ef5014820 /chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
parentec02ee4181c49b61fce1c8fb99292dbb8139cc90 (diff)
downloadqtwebengine-chromium-6ec7b8da05d21a3878bd21c691b41e675d74bb1c.tar.gz
BASELINE: Update Chromium to 60.0.3112.70
Change-Id: I9911c2280a014d4632f254857876a395d4baed2d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h')
-rw-r--r--chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h b/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index b3cf152cc31..324a1da2a28 100644
--- a/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
+++ b/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -64,6 +64,9 @@ class DataReductionProxyCompressionStats {
// Records detailed data usage broken down by connection type and domain. Also
// records daily data savings statistics to prefs and reports data savings
// UMA. |compressed_size| and |original_size| are measured in bytes.
+ // TODO(rajendrant): This can be changed to RecordRequestMimeType and
+ // |data_use_group| param removed. It records daily data savings statistics to
+ // prefs and reports data savings UMA.
void UpdateContentLengths(int64_t compressed_size,
int64_t original_size,
bool data_reduction_proxy_enabled,
@@ -71,6 +74,15 @@ class DataReductionProxyCompressionStats {
const scoped_refptr<DataUseGroup>& data_use_group,
const std::string& mime_type);
+ // Record data usage and original size of request broken down by host.
+ // |original_request_size| and |data_used| are in bytes. |time| is the time at
+ // which the data usage occurred. This method should be called in real time,
+ // so |time| is expected to be |Time::Now()|.
+ void RecordDataUsage(const std::string& data_usage_host,
+ int64_t original_request_size,
+ int64_t data_used,
+ const base::Time time);
+
// Creates a |Value| summary of the persistent state of the network
// statistics.
// Must be called on the UI thread.
@@ -203,14 +215,6 @@ class DataReductionProxyCompressionStats {
const char* original_size_via_proxy_pref,
const char* received_size_via_proxy_pref);
- // Record data usage and original size of request broken down by host. |time|
- // is the time at which the data usage occurred. This method should be called
- // in real time, so |time| is expected to be |Time::Now()|.
- void RecordDataUsage(const std::string& data_usage_host,
- int64_t original_request_size,
- int64_t data_used,
- const base::Time& time);
-
// Persists the in memory data usage information to storage and clears all
// in-memory data usage. Do not call this method unless |data_usage_loaded_|
// is |LOADED|.