diff options
author | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:17:40 +0000 |
---|---|---|
committer | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:17:40 +0000 |
commit | 3d498f757ecce8dd3a8d77ab71c5c6249bd9ac64 (patch) | |
tree | 5b735db3b8500bb2a3244a124563f336e7d62a11 /net/http/http_response_headers.h | |
parent | ba570755b30f617e177c4575d34b0aecfccc3ada (diff) | |
download | chromium_src-3d498f757ecce8dd3a8d77ab71c5c6249bd9ac64.zip chromium_src-3d498f757ecce8dd3a8d77ab71c5c6249bd9ac64.tar.gz chromium_src-3d498f757ecce8dd3a8d77ab71c5c6249bd9ac64.tar.bz2 |
Added support for a new HTTP response header called Chrome-Proxy, which is restricted to only the data compression proxy. The header carries a comma-separated list of instructions for proxy/Chrome interaction. This change introduces one instruction, "bypass," which specifies a number of seconds that Chrome should bypass the proxy.
BUG=306631
Review URL: https://codereview.chromium.org/26515005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.h')
-rw-r--r-- | net/http/http_response_headers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h index 6107597..a212980 100644 --- a/net/http/http_response_headers.h +++ b/net/http/http_response_headers.h @@ -250,6 +250,15 @@ class NET_EXPORT HttpResponseHeaders // Returns true if the response is chunk-encoded. bool IsChunkEncoded() const; +#if defined (SPDY_PROXY_AUTH_ORIGIN) + // Returns true if the Chrome-Proxy header is present and contains a bypass + // delay. Sets |bypass_duration| to the specified delay if greater than 0, and + // to 0 otherwise to indicate that the default proxy delay (as specified in + // |ProxyList::UpdateRetryInfoOnFallback|) should be used. |bypass_duration| + // must be non-NULL. + bool GetChromeProxyInfo(base::TimeDelta* bypass_duration) const; +#endif + // Creates a Value for use with the NetLog containing the response headers. base::Value* NetLogCallback(NetLog::LogLevel log_level) const; |