diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 07:32:53 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-10 07:32:53 +0000 |
commit | 17291a02bb3589d94ceb63fbb14ca59fff75e163 (patch) | |
tree | dff2d5c6919d567ced7dcbfeea6c8daa580b0673 /net/http/http_network_transaction.cc | |
parent | cd6e0ba8e0d9435222349ff4d4d7b19d137d9c57 (diff) | |
download | chromium_src-17291a02bb3589d94ceb63fbb14ca59fff75e163.zip chromium_src-17291a02bb3589d94ceb63fbb14ca59fff75e163.tar.gz chromium_src-17291a02bb3589d94ceb63fbb14ca59fff75e163.tar.bz2 |
Migrate HttpAlternateProtocols to HttpServerPropertiesImpl.
Hooks in HttpServerPropertiesManager also. No persistence done yet. This is all plumbing.
Also require HttpServerProperties in HttpNetworkSession::Params.
BUG=98472
TEST=none
Review URL: http://codereview.chromium.org/8211003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r-- | net/http/http_network_transaction.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index 39fc380..2e6a46c 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -42,6 +42,7 @@ #include "net/http/http_response_body_drainer.h" #include "net/http/http_response_headers.h" #include "net/http/http_response_info.h" +#include "net/http/http_server_properties.h" #include "net/http/http_stream_factory.h" #include "net/http/http_util.h" #include "net/http/url_security_manager.h" @@ -61,18 +62,18 @@ namespace net { namespace { void ProcessAlternateProtocol(HttpStreamFactory* factory, - HttpAlternateProtocols* alternate_protocols, + HttpServerProperties* http_server_properties, const HttpResponseHeaders& headers, const HostPortPair& http_host_port_pair) { std::string alternate_protocol_str; - if (!headers.EnumerateHeader(NULL, HttpAlternateProtocols::kHeader, + if (!headers.EnumerateHeader(NULL, kAlternateProtocolHeader, &alternate_protocol_str)) { // Header is not present. return; } - factory->ProcessAlternateProtocol(alternate_protocols, + factory->ProcessAlternateProtocol(http_server_properties, alternate_protocol_str, http_host_port_pair); } @@ -864,7 +865,7 @@ int HttpNetworkTransaction::DoReadHeadersComplete(int result) { HostPortPair endpoint = HostPortPair(request_->url.HostNoBrackets(), request_->url.EffectiveIntPort()); ProcessAlternateProtocol(session_->http_stream_factory(), - session_->mutable_alternate_protocols(), + session_->http_server_properties(), *response_.headers, endpoint); |