Commit bfcaff5d authored by ksimbili@chromium.org's avatar ksimbili@chromium.org

Remove proxy checking while evaluating via headers.

BUG=385990

Review URL: https://codereview.chromium.org/334983008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278417 0039d316-1c4b-4281-b951-d872f2087c98
parent d4ee7497
...@@ -142,16 +142,9 @@ URLPattern::SchemeMasks GetSupportedSchemeType(const GURL& url) { ...@@ -142,16 +142,9 @@ URLPattern::SchemeMasks GetSupportedSchemeType(const GURL& url) {
} }
// Helper function to check for string in 'via' header. Returns true if // Helper function to check for string in 'via' header. Returns true if
// |via_value| is one of the values listed in the Via header and the response // |via_value| is one of the values listed in the Via header.
// was fetched via a proxy.
bool ViaHeaderContains(WebFrame* frame, const std::string& via_value) { bool ViaHeaderContains(WebFrame* frame, const std::string& via_value) {
const char kViaHeaderName[] = "Via"; const char kViaHeaderName[] = "Via";
DocumentState* document_state =
DocumentState::FromDataSource(frame->dataSource());
if (!document_state->was_fetched_via_proxy())
return false;
std::vector<std::string> values; std::vector<std::string> values;
// Multiple via headers have already been coalesced and hence each value // Multiple via headers have already been coalesced and hence each value
// separated by a comma corresponds to a proxy. The value added by a proxy is // separated by a comma corresponds to a proxy. The value added by a proxy is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment