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

Issue 1128823005: Update marking proxies as bad in ProxyList/ProxyService to use a std::vector (Closed)

Created:
5 years, 7 months ago by jeremyim
Modified:
5 years, 7 months ago
Reviewers:
bengr, eroman
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

Update marking proxies as bad in ProxyList/ProxyService to use a std::vector Currently, various methods related to marking proxies as bad in the ProxyList and ProxyService classes take a single ProxyServer for optionally marking an additional proxy as bad (i.e. ProxyList::UpdateRetryInfoOnFallback and ProxyService::MarkProxiesAsBadUntil). This is linked to fundamental assumptions in the Data Reduction Proxy that only two proxy servers are being used. As part of moving to a dynamic configuration, it is possible that more than 2 proxy servers could be used for the Data Reduction Proxy, so using a vector of ProxyServer objects makes more sense in the interface. BUG=470587 Committed: https://crrev.com/793a471b70c2e7442daad6bcd57f06576458b58d Cr-Commit-Position: refs/heads/master@{#329861}

Patch Set 1 #

Total comments: 8

Patch Set 2 : bengr CR comments #

Patch Set 3 : Fix unit test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -71 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc View 1 4 chunks +8 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M net/proxy/proxy_list.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/proxy/proxy_list.cc View 3 chunks +7 lines, -16 lines 0 comments Download
M net/proxy/proxy_list_unittest.cc View 1 5 chunks +20 lines, -22 lines 0 comments Download
M net/proxy/proxy_service.h View 1 chunk +13 lines, -12 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 chunk +5 lines, -11 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
jeremyim
PTAL. =) bengr => components/data_reduction_proxy/* eroman => net/* Thanks!
5 years, 7 months ago (2015-05-08 23:22:13 UTC) #2
eroman
LGTM on the net/* changes. I did not look at how DRP is using it ...
5 years, 7 months ago (2015-05-12 05:33:11 UTC) #3
bengr
https://codereview.chromium.org/1128823005/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/1128823005/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode42 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:42: std::vector<net::ProxyServer> additional_bad_proxies; #include <vector> https://codereview.chromium.org/1128823005/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc (right): https://codereview.chromium.org/1128823005/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc#newcode155 ...
5 years, 7 months ago (2015-05-12 15:36:47 UTC) #4
jeremyim
https://codereview.chromium.org/1128823005/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/1128823005/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc#newcode42 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc:42: std::vector<net::ProxyServer> additional_bad_proxies; On 2015/05/12 15:36:46, bengr wrote: > #include ...
5 years, 7 months ago (2015-05-12 18:53:14 UTC) #5
bengr
lgtm
5 years, 7 months ago (2015-05-14 15:52:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128823005/40001
5 years, 7 months ago (2015-05-14 15:53:47 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-14 17:04:11 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 17:05:03 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/793a471b70c2e7442daad6bcd57f06576458b58d
Cr-Commit-Position: refs/heads/master@{#329861}

Powered by Google App Engine
This is Rietveld 408576698