Index: components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_params.h b/components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
index 7a8e9f4c9154f8d0e2dce7ad440516dc6b601b51..5862a5ba76d25d5a3bfe5f91921b6ec7e1e1cf98 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
@@ -92,6 +92,15 @@ class DataReductionProxyParams { |
// list. |
virtual bool IsDataReductionProxyEligible(const net::URLRequest* request); |
+ // Checks if all configured data reduction proxies are in the retry map. |
+ // Returns true if the request is bypassed by all configured data reduction |
+ // proxies. If there are no configured data reduction proxies, returns false. |
+ // It returns the bypass delay in delay_seconds (if not NULL). If |
+ // the request is bypassed by more than one proxy, delay_seconds returns |
+ // shortest delay. |
+ bool WereDataReductionProxiesBypassed(const net::URLRequest* request, |
+ int64* delay_seconds) const; |
+ |
// Returns the data reduction proxy primary origin. |
const GURL& origin() const { |
return origin_; |