Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Issue 792803007: Make Data Reduction Proxy a best effort proxy (Closed)

Created:
6 years ago by bengr
Modified:
5 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Data Reduction Proxy a best effort proxy The data reduction proxy is used only if the effective proxy configuration resolves to DIRECT for the requested URL. This works by allowing the ProxyService to choose an effective proxy configuration and to decide on the prioritized list of proxies to use for a URL given that configuration. Just before the list is used, the DataReductionProxyNetworkDelegate's OnResolveProxy() method provides an opportunity to change that list, which it does, only if that list begins with DIRECT. BUG=429826, 444169 Committed: https://crrev.com/70101ea5186d12e67ed99e67fdafd33813f8da67 Cr-Commit-Position: refs/heads/master@{#310182}

Patch Set 1 : #

Patch Set 2 : Fixed tests and BypassedBytes UMA #

Patch Set 3 : rebase #

Total comments: 15

Patch Set 4 : Addressed comments from sclittle #

Total comments: 2

Patch Set 5 : Addressed comment from mmenke #

Patch Set 6 : Reverted forward declaration #

Patch Set 7 : nit #

Total comments: 1

Patch Set 8 : rebase #

Patch Set 9 : updated tests #

Total comments: 4

Patch Set 10 : Addressed comments from sgurun and sclittle #

Patch Set 11 : updated tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -1462 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 5 chunks +25 lines, -28 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.h View 3 chunks +2 lines, -5 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h View 1 chunk +0 lines, -92 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.cc View 1 chunk +0 lines, -195 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator_unittest.cc View 1 chunk +0 lines, -202 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc View 1 3 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 6 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy.gypi View 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 2 chunks +2 lines, -3 lines 0 comments Download
D components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.h View 1 chunk +0 lines, -125 lines 0 comments Download
D components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc View 1 chunk +0 lines, -200 lines 0 comments Download
D components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_unittest.cc View 1 chunk +0 lines, -305 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h View 1 2 3 1 chunk +72 lines, -17 lines 0 comments Download
A + components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc View 7 chunks +17 lines, -58 lines 0 comments Download
A + components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_unittest.cc View 1 8 chunks +41 lines, -83 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol_unittest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -52 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc View 1 4 chunks +20 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 5 6 7 4 chunks +23 lines, -15 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (9 generated)
bengr
sgurun: android_webview/* marq: chrome/browser/net/spdyproxy/*, and components/* mmenke: chrome/browser/profile*
6 years ago (2014-12-20 00:21:30 UTC) #2
marq (ping after 24h)
A more thorough description for this CL is needed. I'll do a detailed review, but ...
6 years ago (2014-12-20 01:09:48 UTC) #3
bengr
6 years ago (2014-12-22 23:42:02 UTC) #5
bengr
sclittle: chrome/browser/net/spdyproxy/* and components/* asvitkine: histograms.xml
5 years, 11 months ago (2014-12-30 19:32:19 UTC) #10
sclittle
https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h (right): https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h#newcode5 components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h:5: #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIGURATOR_ Why no "_H_"? https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h#newcode57 components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h:57: bool fallback_restricted, ...
5 years, 11 months ago (2014-12-30 22:10:41 UTC) #11
bengr
https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h (right): https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h#newcode5 components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h:5: #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIGURATOR_ On 2014/12/30 22:10:41, sclittle wrote: > Why ...
5 years, 11 months ago (2014-12-30 23:22:30 UTC) #12
sclittle
chrome/browser/net/spdyproxy/* and components/* LGTM https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/792803007/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode257 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:257: DataReductionProxyUsageStats::PROXY_OVERRIDDEN, On 2014/12/30 23:22:30, bengr ...
5 years, 11 months ago (2014-12-30 23:54:26 UTC) #13
marq (ping after 24h)
A quick inspection LGTM; rubberstamping as OWNER/committer.
5 years, 11 months ago (2014-12-31 00:27:42 UTC) #14
mmenke
profiles/ LGTM. Didn't look at anything else. https://codereview.chromium.org/792803007/diff/120001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/792803007/diff/120001/chrome/browser/profiles/profile_io_data.h#newcode26 chrome/browser/profiles/profile_io_data.h:26: #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h" ...
5 years, 11 months ago (2015-01-05 15:42:42 UTC) #15
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-05 16:56:48 UTC) #16
bengr
https://codereview.chromium.org/792803007/diff/120001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/792803007/diff/120001/chrome/browser/profiles/profile_io_data.h#newcode26 chrome/browser/profiles/profile_io_data.h:26: #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h" On 2015/01/05 15:42:42, mmenke wrote: > Can't ...
5 years, 11 months ago (2015-01-05 23:28:38 UTC) #17
sclittle
https://codereview.chromium.org/792803007/diff/180001/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc (right): https://codereview.chromium.org/792803007/diff/180001/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc#newcode153 components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc:153: !url.SchemeIsWSOrWSS()) { Please add a DCHECK asserting that the ...
5 years, 11 months ago (2015-01-06 01:42:47 UTC) #18
sclittle
https://codereview.chromium.org/792803007/diff/220001/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc (left): https://codereview.chromium.org/792803007/diff/220001/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc#oldcode150 components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc:150: net::ProxyInfo* result) { Can you add a DCHECK at ...
5 years, 11 months ago (2015-01-06 18:13:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792803007/220001
5 years, 11 months ago (2015-01-06 19:35:00 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/33434)
5 years, 11 months ago (2015-01-06 19:43:17 UTC) #23
sgurun-gerrit only
https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc#newcode166 android_webview/browser/aw_browser_context.cc:166: if (data_reduction_proxy_settings_.get()) { why do we need this if?
5 years, 11 months ago (2015-01-06 19:43:58 UTC) #24
bengr
https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc#newcode166 android_webview/browser/aw_browser_context.cc:166: if (data_reduction_proxy_settings_.get()) { On 2015/01/06 19:43:57, sgurun wrote: > ...
5 years, 11 months ago (2015-01-06 21:32:49 UTC) #25
sgurun-gerrit only
On 2015/01/06 21:32:49, bengr wrote: > https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc > File android_webview/browser/aw_browser_context.cc (right): > > https://codereview.chromium.org/792803007/diff/220001/android_webview/browser/aw_browser_context.cc#newcode166 > ...
5 years, 11 months ago (2015-01-06 21:37:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792803007/260001
5 years, 11 months ago (2015-01-06 23:47:12 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:260001)
5 years, 11 months ago (2015-01-07 00:21:21 UTC) #29
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 00:23:01 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/70101ea5186d12e67ed99e67fdafd33813f8da67
Cr-Commit-Position: refs/heads/master@{#310182}

Powered by Google App Engine
This is Rietveld 408576698