summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_server.h')
-rw-r--r--net/proxy/proxy_server.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/proxy/proxy_server.h b/net/proxy/proxy_server.h
index 00cc9fd..08a20c0 100644
--- a/net/proxy/proxy_server.h
+++ b/net/proxy/proxy_server.h
@@ -146,6 +146,14 @@ class NET_EXPORT ProxyServer {
return host_port_pair_ < other.host_port_pair_;
}
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
+ // Returns true if this proxy server is the data reduction proxy or its
+ // fallback, respectively, as configured in gyp. These functions will return
+ // false for data reduction proxy servers specified on the command line.
+ bool isDataReductionProxy() const;
+ bool isDataReductionProxyFallback() const;
+#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
+
private:
// Creates a ProxyServer given a scheme, and host/port string. If parsing the
// host/port string fails, the returned instance will be invalid.