summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_factory_impl_request.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_stream_factory_impl_request.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_stream_factory_impl_request.h')
-rw-r--r--net/http/http_stream_factory_impl_request.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/http/http_stream_factory_impl_request.h b/net/http/http_stream_factory_impl_request.h
index 3c1b996..248a316 100644
--- a/net/http/http_stream_factory_impl_request.h
+++ b/net/http/http_stream_factory_impl_request.h
@@ -37,8 +37,7 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest {
// Marks completion of the request. Must be called before OnStreamReady().
// |source| is the NetLog::Source generated by the Job that fulfilled this
// request.
- void Complete(bool was_alternate_protocol_available,
- bool was_npn_negotiated,
+ void Complete(bool was_npn_negotiated,
bool using_spdy,
const NetLog::Source& source);
@@ -83,7 +82,6 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest {
virtual int RestartTunnelWithProxyAuth(const string16& username,
const string16& password);
virtual LoadState GetLoadState() const;
- virtual bool was_alternate_protocol_available() const;
virtual bool was_npn_negotiated() const;
virtual bool using_spdy() const;
@@ -106,7 +104,6 @@ class HttpStreamFactoryImpl::Request : public HttpStreamRequest {
scoped_ptr<const HostPortProxyPair> spdy_session_key_;
bool completed_;
- bool was_alternate_protocol_available_;
bool was_npn_negotiated_;
bool using_spdy_;