Add support for field trial group to relax missing via header bypass logic.
commitdb1198c5327b5c69b93fafd814b9f516b88a15fd
authorsclittle <sclittle@chromium.org>
Fri, 9 Jan 2015 03:24:10 +0000 (8 19:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 9 Jan 2015 03:25:21 +0000 (9 03:25 +0000)
treed44c19253c8d39ab4d1e3c5c878589d6b1223c3c
parent4ef065e92f5822c7b0e73ed01433978c0566954f
Add support for field trial group to relax missing via header bypass logic.

This change refactors the bypass logic into a class and adds support for
a new group in the DataReductionProxyRemoveMissingViaHeaderOtherBypass
field trial. This new group relaxes the non-4xx response missing via
header bypass logic to only apply to the first response through the
proxy after a network change.

BUG=413035, 409466

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

Cr-Commit-Position: refs/heads/master@{#310698}
18 files changed:
android_webview/browser/net/aw_url_request_context_getter.cc
chrome/browser/io_thread.cc
chrome/browser/profiles/profile_impl_io_data.cc
components/components_tests.gyp
components/data_reduction_proxy.gypi
components/data_reduction_proxy/core/browser/BUILD.gn
components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc [moved from components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc with 71% similarity]
components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h [new file with mode: 0644]
components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc [moved from components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol_unittest.cc with 78% similarity]
components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h [deleted file]
components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_params.h