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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.h

Issue 510353004: Fixing DataReductionProxy.BypassedBytes.LocalBypassRules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed bengr and mmenke comments Created 6 years, 3 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/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
bengr 2014/09/03 17:06:55 The return description and the function name seem
megjablon 2014/09/03 17:20:12 Ya, I forgot to change the description when I flip
+ // 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
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | components/data_reduction_proxy/browser/data_reduction_proxy_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698