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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_util.h

Issue 2619243003: Adding ExtraRequest info and exposing request to PLM observers (Closed)
Patch Set: comments Created 3 years, 11 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/common/data_reduction_proxy_util.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
index 340c74afd1345d83a5d1525a6adbf660a98dc359..be0a16dabfffc724d58b06c0f795f260e5bc0e11 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
@@ -23,6 +23,7 @@ class TimeDelta;
namespace net {
class ProxyConfig;
class ProxyInfo;
+class URLRequest;
}
namespace data_reduction_proxy {
@@ -87,6 +88,10 @@ bool ApplyProxyConfigToProxyInfo(const net::ProxyConfig& proxy_config,
const GURL& url,
net::ProxyInfo* data_reduction_proxy_info);
+// Calculates the effective original content length of the |request|, accounting
+// for partial responses if necessary.
+int64_t CalculateEffectiveOCL(const net::URLRequest& request);
+
} // namespace util
namespace protobuf_parser {

Powered by Google App Engine
This is Rietveld 408576698