summaryrefslogtreecommitdiffstats
path: root/net/http/http_basic_stream.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-06 16:45:29 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-06 16:45:29 +0000
commit46e1edc4121dda51143becfffbc46674c770def2 (patch)
tree27593717ecc788e3f863e91fcef9ec11f8991697 /net/http/http_basic_stream.h
parent7a44af79d362f76d2af41a440506eb7fad0792cb (diff)
downloadchromium_src-46e1edc4121dda51143becfffbc46674c770def2.zip
chromium_src-46e1edc4121dda51143becfffbc46674c770def2.tar.gz
chromium_src-46e1edc4121dda51143becfffbc46674c770def2.tar.bz2
Don't block on stream requests on Alternate-Protocol.
Basically, after we get an HTTP header giving an Alternate-Protocol, we'll end up in a state where we're probably going to issue more HTTP requests. We have the already warm single HTTP connection. We probably don't have a SPDY session open. Previously, once we notice Alternate-Protocol, we'd block on trying to set up the new SPDY session, even though we still have the HTTP connection. Change this so we keep using HTTP until the SPDY session on the Alternate-Protocol becomes available, then we switch over to it. BUG=69688,75000 TEST=Browse to belshe.com. Examine net-internals to make sure it works. Test over a variety of connections (direct / various proxy types). Review URL: http://codereview.chromium.org/6610034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_basic_stream.h')
-rw-r--r--net/http/http_basic_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_basic_stream.h b/net/http/http_basic_stream.h
index 918596a..a706e8e 100644
--- a/net/http/http_basic_stream.h
+++ b/net/http/http_basic_stream.h
@@ -76,6 +76,8 @@ class HttpBasicStream : public HttpStream {
virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
+ virtual bool IsSpdyHttpStream() const;
+
private:
scoped_refptr<GrowableIOBuffer> read_buf_;