diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-12 01:39:55 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-12 01:39:55 +0000 |
commit | 2d67286973ae47301854b37eb1f142ac25d5e132 (patch) | |
tree | 468c5dfd91b57d6192cf87c34bc197ea415eca2c /net/http/http_response_info.cc | |
parent | c942d18826443fe7ebdde476265ab0cf026d7527 (diff) | |
download | chromium_src-2d67286973ae47301854b37eb1f142ac25d5e132.zip chromium_src-2d67286973ae47301854b37eb1f142ac25d5e132.tar.gz chromium_src-2d67286973ae47301854b37eb1f142ac25d5e132.tar.bz2 |
Reland rest of r77399.
I had temporarily reverted it so I could break it up into 2 commits, so the first could be merged to 696. This is part 2.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6684019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_info.cc')
-rw-r--r-- | net/http/http_response_info.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc index 9b3444a..fd76462 100644 --- a/net/http/http_response_info.cc +++ b/net/http/http_response_info.cc @@ -52,10 +52,6 @@ enum { // This bit is set if the request was fetched via an explicit proxy. RESPONSE_INFO_WAS_PROXY = 1 << 15, - // This bit is set if response could use alternate protocol. However, browser - // will ingore the alternate protocol if spdy is not enabled. - RESPONSE_INFO_WAS_ALTERNATE_PROTOCOL_AVAILABLE = 1 << 16, - // TODO(darin): Add other bits to indicate alternate request methods. // For now, we don't support storing those. }; @@ -64,7 +60,6 @@ HttpResponseInfo::HttpResponseInfo() : was_cached(false), was_fetched_via_spdy(false), was_npn_negotiated(false), - was_alternate_protocol_available(false), was_fetched_via_proxy(false) { } @@ -72,7 +67,6 @@ HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs) : was_cached(rhs.was_cached), was_fetched_via_spdy(rhs.was_fetched_via_spdy), was_npn_negotiated(rhs.was_npn_negotiated), - was_alternate_protocol_available(rhs.was_alternate_protocol_available), was_fetched_via_proxy(rhs.was_fetched_via_proxy), socket_address(rhs.socket_address), request_time(rhs.request_time), @@ -92,7 +86,6 @@ HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) { was_cached = rhs.was_cached; was_fetched_via_spdy = rhs.was_fetched_via_spdy; was_npn_negotiated = rhs.was_npn_negotiated; - was_alternate_protocol_available = rhs.was_alternate_protocol_available; was_fetched_via_proxy = rhs.was_fetched_via_proxy; socket_address = rhs.socket_address; request_time = rhs.request_time; @@ -176,9 +169,6 @@ bool HttpResponseInfo::InitFromPickle(const Pickle& pickle, was_npn_negotiated = (flags & RESPONSE_INFO_WAS_NPN) != 0; - was_alternate_protocol_available = - (flags & RESPONSE_INFO_WAS_ALTERNATE_PROTOCOL_AVAILABLE) != 0; - was_fetched_via_proxy = (flags & RESPONSE_INFO_WAS_PROXY) != 0; *response_truncated = (flags & RESPONSE_INFO_TRUNCATED) ? true : false; @@ -205,8 +195,6 @@ void HttpResponseInfo::Persist(Pickle* pickle, flags |= RESPONSE_INFO_WAS_SPDY; if (was_npn_negotiated) flags |= RESPONSE_INFO_WAS_NPN; - if (was_alternate_protocol_available) - flags |= RESPONSE_INFO_WAS_ALTERNATE_PROTOCOL_AVAILABLE; if (was_fetched_via_proxy) flags |= RESPONSE_INFO_WAS_PROXY; |