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

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

Issue 2242353003: Record partial savings for incomplete responses through the DRP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed ScaleContentLength to ScaleByteCountByRatio Created 4 years, 4 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_metrics.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h
index fb91fd35e0146fc1695ca8b9f7e2b1fd02b73c58..57c9002bef7b7831fe86bc1627ccfa102384b79a 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h
@@ -5,11 +5,8 @@
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_
-#include <stdint.h>
-
#include <vector>
-
namespace net {
class ProxyConfig;
class URLRequest;
@@ -19,10 +16,10 @@ class PrefService;
namespace data_reduction_proxy {
-typedef std::vector<long long> ContentLengthList;
-
class DataReductionProxyConfig;
+typedef std::vector<long long> ContentLengthList;
+
// A bypass delay more than this is treated as a long delay.
const int kLongBypassDelayInSeconds = 30 * 60;
@@ -54,14 +51,6 @@ DataReductionProxyRequestType GetDataReductionProxyRequestType(
const net::ProxyConfig& data_reduction_proxy_config,
const DataReductionProxyConfig& config);
-// Returns |received_content_length| as adjusted original content length if
-// |original_content_length| has the invalid value (-1) or |request_type|
-// is not |VIA_DATA_REDUCTION_PROXY|.
-int64_t GetAdjustedOriginalContentLength(
- DataReductionProxyRequestType request_type,
- int64_t original_content_length,
- int64_t received_content_length);
-
} // namespace data_reduction_proxy
#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRICS_H_

Powered by Google App Engine
This is Rietveld 408576698