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

Issue 1124073008: Base Data Reduction Proxy configuration on vectors of servers per origin scheme. (Closed)

Created:
5 years, 7 months ago by jeremyim
Modified:
5 years, 7 months ago
Reviewers:
bengr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Base Data Reduction Proxy configuration on vectors of servers per origin scheme. Previously, the configuration was done by having multiple methods which returned a single server and relied on the caller to understand which was desired (origin vs fallback vs alternative vs alternative fallback). The configuration was also limited to 2 servers and relied on checking the validity of each value of the std::pair to understand if a value was actually set or not. Using a std::vector permits more than 2 servers to be used, and makes it clearer that any values inside are valid. The IsDataReductionProxy method also moves into DataReductionProxyConfig instead of being implemented in DataReductionProxyConfigValues. BUG=470587 Committed: https://crrev.com/552614698e11a3ed8aa23e59bf446be5f61dbce1 Cr-Commit-Position: refs/heads/master@{#330593}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Rebase to master #

Patch Set 3 : bengr CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+945 lines, -940 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc View 1 2 5 chunks +20 lines, -32 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h View 1 2 2 chunks +12 lines, -11 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc View 1 2 5 chunks +81 lines, -28 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc View 12 chunks +46 lines, -45 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc View 9 chunks +346 lines, -38 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h View 2 chunks +6 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc View 3 chunks +33 lines, -28 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h View 4 chunks +13 lines, -26 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc View 1 chunk +9 lines, -16 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_unittest.cc View 1 2 3 chunks +78 lines, -98 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc View 1 2 6 chunks +20 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc View 1 2 2 chunks +78 lines, -65 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.h View 3 chunks +12 lines, -14 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc View 3 chunks +12 lines, -57 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_config_values.h View 2 chunks +10 lines, -25 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h View 3 chunks +7 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.cc View 1 2 2 chunks +21 lines, -29 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 4 chunks +18 lines, -20 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 5 chunks +30 lines, -90 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc View 2 chunks +6 lines, -9 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc View 1 9 chunks +53 lines, -258 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jeremyim
PTAL. Thanks!
5 years, 7 months ago (2015-05-15 04:34:27 UTC) #2
bengr
https://codereview.chromium.org/1124073008/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc (right): https://codereview.chromium.org/1124073008/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode40 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:40: const std::vector<net::ProxyServer>& data_reduction_proxies) { Why is this not a ...
5 years, 7 months ago (2015-05-19 15:20:38 UTC) #3
jeremyim
https://codereview.chromium.org/1124073008/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc (right): https://codereview.chromium.org/1124073008/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode40 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:40: const std::vector<net::ProxyServer>& data_reduction_proxies) { On 2015/05/19 15:20:37, bengr wrote: ...
5 years, 7 months ago (2015-05-19 18:25:38 UTC) #4
bengr
lgtm
5 years, 7 months ago (2015-05-19 19:16:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124073008/40001
5 years, 7 months ago (2015-05-19 20:05:41 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-19 20:25:50 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 20:27:12 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/552614698e11a3ed8aa23e59bf446be5f61dbce1
Cr-Commit-Position: refs/heads/master@{#330593}

Powered by Google App Engine
This is Rietveld 408576698