diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 16:30:42 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 16:30:42 +0000 |
commit | 564b491ea6d163724307331648bd7b45cdada99e (patch) | |
tree | 135aa4b4e6e36e5ace999fb363c20b7913f4061d /net/http/http_network_transaction.h | |
parent | ad54c1966904ed5b3d7e71c8f6caf4606c7e6a93 (diff) | |
download | chromium_src-564b491ea6d163724307331648bd7b45cdada99e.zip chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.gz chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.bz2 |
SPDY: Add basic support for Alternate-Protocol header.
Review URL: http://codereview.chromium.org/668197
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r-- | net/http/http_network_transaction.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h index e4eef52..80957bf 100644 --- a/net/http/http_network_transaction.h +++ b/net/http/http_network_transaction.h @@ -103,6 +103,12 @@ class HttpNetworkTransaction : public HttpTransaction { kSOCKSProxy, // If using a SOCKS proxy }; + enum AlternateProtocolMode { + kUnspecified, // Unspecified, check HttpAlternateProtocols + kUsingAlternateProtocol, // Using an alternate protocol + kDoNotUseAlternateProtocol, // Failed to connect once, do not try again. + }; + void DoCallback(int result); void OnIOComplete(int result); @@ -321,6 +327,9 @@ class HttpNetworkTransaction : public HttpTransaction { // True if this network transaction is using SPDY instead of HTTP. bool using_spdy_; + // True if this network transaction is using an alternate protocol to connect. + AlternateProtocolMode alternate_protocol_mode_; + // True if we've used the username/password embedded in the URL. This // makes sure we use the embedded identity only once for the transaction, // preventing an infinite auth restart loop. |