diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 21:20:27 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 21:20:27 +0000 |
commit | f4580339db115c23098d09545db9c50a83e2e3e2 (patch) | |
tree | e94a0872d826a3877bf2dff330ce82b97c107250 /net/http/http_stream_request.cc | |
parent | 02b0c3408a241a812a46b20c1cc361cba5d2bf9b (diff) | |
download | chromium_src-f4580339db115c23098d09545db9c50a83e2e3e2.zip chromium_src-f4580339db115c23098d09545db9c50a83e2e3e2.tar.gz chromium_src-f4580339db115c23098d09545db9c50a83e2e3e2.tar.bz2 |
Remove the references to HttpNetworkSession in SpdySession
and replace it with a reference to the SpdySessionPool
and SpdySettingStorage, which are actually required.
Modified SpdySessionPool to take a pointer to
SpdySettingsStorage instead of to HttpNetworkSession
in both GetSpdySessionFromSocket() Get().
Modified HttpStreamRequest (and various unit tests) accordingly
when calling these methods.
Review URL: http://codereview.chromium.org/3400024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_request.cc')
-rw-r--r-- | net/http/http_stream_request.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/http/http_stream_request.cc b/net/http/http_stream_request.cc index d772e9f..2761e1b 100644 --- a/net/http/http_stream_request.cc +++ b/net/http/http_stream_request.cc @@ -698,13 +698,14 @@ int HttpStreamRequest::DoCreateStream() { // We have a SPDY session to the origin server. This might be a direct // connection, or it might be a SPDY session through an HTTP or HTTPS proxy. spdy_session = - spdy_pool->Get(pair, session_, net_log_); + spdy_pool->Get(pair, session_->mutable_spdy_settings(), net_log_); } else if (proxy_info()->is_https()) { // If we don't have a direct SPDY session, and we're using an HTTPS // proxy, then we might have a SPDY session to the proxy pair = HostPortProxyPair(proxy_server.host_port_pair(), proxy_server); if (spdy_pool->HasSession(pair)) { - spdy_session = spdy_pool->Get(pair, session_, net_log_); + spdy_session = + spdy_pool->Get(pair, session_->mutable_spdy_settings(), net_log_); } direct = false; } @@ -715,8 +716,8 @@ int HttpStreamRequest::DoCreateStream() { // contain an SSLClientSocket. CHECK(connection_->socket()); int error = spdy_pool->GetSpdySessionFromSocket( - pair, session_, connection_.release(), net_log_, - spdy_certificate_error_, &spdy_session, using_ssl_); + pair, session_->mutable_spdy_settings(), connection_.release(), + net_log_, spdy_certificate_error_, &spdy_session, using_ssl_); if (error != OK) return error; } |