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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: PS Created 4 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/core/browser/data_reduction_proxy_config.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
index c7f7e8252a2fbca65e750cba9fccd62e3bff1675..71848e78c76e6e4562b840606db1486dd8d95970 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
@@ -36,6 +36,7 @@ class SingleThreadTaskRunner;
namespace net {
class HostPortPair;
class NetLog;
+class ProxyServer;
class URLFetcher;
class URLRequest;
class URLRequestContextGetter;
@@ -130,7 +131,7 @@ class DataReductionProxyConfig
const net::URLRequest* request,
DataReductionProxyTypeInfo* proxy_info) const;
- // Returns true if the specified |host_port_pair| matches a Data Reduction
+ // Returns true if the specified |proxy_server| matches a Data Reduction
// Proxy. If true, |proxy_info.proxy_servers.front()| will contain the name of
// the proxy that matches. Subsequent entries in |proxy_info.proxy_servers|
// will contain the name of the Data Reduction Proxy servers that would be
@@ -139,7 +140,7 @@ class DataReductionProxyConfig
// can be NULL if the caller isn't interested in its values. Virtual for
// testing.
virtual bool IsDataReductionProxy(
- const net::HostPortPair& host_port_pair,
+ const net::ProxyServer& proxy_server,
DataReductionProxyTypeInfo* proxy_info) const;
// Returns true if this request would be bypassed by the Data Reduction Proxy

Powered by Google App Engine
This is Rietveld 408576698