Upstream version 10.38.208.0
[platform/framework/web/crosswalk.git] / src / components / data_reduction_proxy / browser / data_reduction_proxy_params.h
index 6517845..9059047 100644 (file)
@@ -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 would be bypassed by 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