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 651784527a2f46a39addb0dd9d4482dedf422f12..14021b4ac22998e4b2fc1504c6160e668aee9b9f 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.h |
@@ -19,6 +19,7 @@ class TimeDelta; |
} |
namespace net { |
+class ProxyConfig; |
class URLRequest; |
} |
@@ -130,6 +131,13 @@ class DataReductionProxyParams { |
// list. |
virtual bool IsDataReductionProxyEligible(const net::URLRequest* request); |
+ // Returns true if this request could be sent through the data request proxy |
+ // based on applying the |data_reduction_proxy_config| param rules to the |
+ // request URL. |
+ bool IsBypassedByDataReductionProxyLocalRules( |
+ const net::URLRequest& request, |
+ const net::ProxyConfig& data_reduction_proxy_config) const; |
+ |
// 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 and returns the bypass delay in delay_seconds (if not NULL). If |