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

Issue 1024553009: Add the ability to use DataReductionProxyParams from DataReductionProxyConfigServiceClient. (Closed)

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

Description

Add the ability to use DataReductionProxyParams from DataReductionProxyConfigServiceClient. - Permit DRP RequestOptions to take auth credentials instead of always internally generating them. - Permit DRP Config to perform a reload of the configuration - Create a new DRP MutableConfigValues class which can have its underlying values updated. - Add a configuration refresh timer to DRP ConfigServiceClient, along with backoff logic. BUG=466753 Committed: https://crrev.com/c558244dc68392b18424e1300adc2acfe383746a Cr-Commit-Position: refs/heads/master@{#322217}

Patch Set 1 #

Patch Set 2 : Forgot implementation of DataReductionProxyMutableConfigValues::IsDataReductionProxy in downstream … #

Total comments: 46

Patch Set 3 : Address CR comments #

Total comments: 12

Patch Set 4 : Additional round of CR comments #

Total comments: 14

Patch Set 5 : More CR comments #

Patch Set 6 : Rebase #

Total comments: 13

Patch Set 7 : Address bengr CR comments #

Patch Set 8 : Address sclittle comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1033 lines, -78 lines) Patch
M components/data_reduction_proxy.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc View 1 2 3 4 5 6 3 chunks +31 lines, -11 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h View 1 2 3 4 5 6 1 chunk +67 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc View 1 2 3 4 5 6 1 chunk +147 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc View 1 2 3 4 4 chunks +165 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h View 1 2 3 4 4 chunks +19 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc View 1 2 3 4 5 6 3 chunks +34 lines, -15 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 2 chunks +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 3 2 chunks +25 lines, -3 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.h View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc View 1 2 3 4 5 6 1 chunk +140 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h View 2 chunks +8 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc View 5 chunks +15 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h View 1 2 3 4 5 6 7 12 chunks +105 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 3 4 5 6 7 14 chunks +164 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
jeremyim
PTAL. =)
5 years, 9 months ago (2015-03-24 18:06:06 UTC) #2
sclittle
https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc (right): https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc#newcode7 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc:7: #include <vector> also include string https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc#newcode99 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc:99: const ProxyServer& ...
5 years, 9 months ago (2015-03-24 21:34:56 UTC) #3
bengr
https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc (right): https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc#newcode93 components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc:93: void DataReductionProxyConfig::ReloadConfig() { Why is this method needed? https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h ...
5 years, 9 months ago (2015-03-24 21:37:42 UTC) #4
jeremyim
https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc (right): https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc#newcode93 components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc:93: void DataReductionProxyConfig::ReloadConfig() { On 2015/03/24 21:37:40, bengr wrote: > ...
5 years, 9 months ago (2015-03-24 23:20:29 UTC) #5
bengr
https://codereview.chromium.org/1024553009/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc (right): https://codereview.chromium.org/1024553009/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc#newcode38 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc:38: 30 * 60 * 1000, // maximum_backoff_ms I think ...
5 years, 9 months ago (2015-03-24 23:35:37 UTC) #6
sclittle
https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc (right): https://codereview.chromium.org/1024553009/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc#newcode73 components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc:73: bool DataReductionProxyMutableConfigValues::IsDataReductionProxy( On 2015/03/24 23:20:28, jeremyim wrote: > On ...
5 years, 9 months ago (2015-03-25 00:03:23 UTC) #7
jeremyim
https://codereview.chromium.org/1024553009/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc (right): https://codereview.chromium.org/1024553009/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc#newcode38 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc:38: 30 * 60 * 1000, // maximum_backoff_ms On 2015/03/24 ...
5 years, 9 months ago (2015-03-25 00:37:21 UTC) #8
sclittle
https://codereview.chromium.org/1024553009/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc (right): https://codereview.chromium.org/1024553009/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc#newcode125 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc:125: base::Time::UnixEpoch() + base::TimeDelta::FromDays(1), Where is it tested that a ...
5 years, 9 months ago (2015-03-25 02:58:38 UTC) #9
jeremyim
More CR comments
5 years, 9 months ago (2015-03-25 05:05:38 UTC) #10
jeremyim
https://codereview.chromium.org/1024553009/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc (right): https://codereview.chromium.org/1024553009/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc#newcode125 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc:125: base::Time::UnixEpoch() + base::TimeDelta::FromDays(1), On 2015/03/25 02:58:38, sclittle wrote: > ...
5 years, 9 months ago (2015-03-25 05:07:39 UTC) #11
jeremyim
Rebase
5 years, 9 months ago (2015-03-25 05:39:36 UTC) #12
bengr
https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc (right): https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc#newcode301 components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc:301: fallback_origin = config_values_->fallback_origin().ToURI(); Why do you convert from net::ProxyServer ...
5 years, 9 months ago (2015-03-25 17:15:11 UTC) #13
jeremyim
Address bengr CR comments
5 years, 9 months ago (2015-03-25 17:53:15 UTC) #14
jeremyim
https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc (right): https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc#newcode301 components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc:301: fallback_origin = config_values_->fallback_origin().ToURI(); On 2015/03/25 17:15:11, bengr wrote: > ...
5 years, 9 months ago (2015-03-25 17:54:19 UTC) #15
bengr
lgtm
5 years, 9 months ago (2015-03-25 17:58:36 UTC) #16
sclittle
LGTM with nit https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h (right): https://codereview.chromium.org/1024553009/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h#newcode125 components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h:125: base::TimeTicks NowTicks() override; nit: If you ...
5 years, 9 months ago (2015-03-25 18:03:56 UTC) #17
jeremyim
Address sclittle comment
5 years, 9 months ago (2015-03-25 18:22:01 UTC) #18
jeremyim
Thanks for looking at this!
5 years, 9 months ago (2015-03-25 18:22:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024553009/140001
5 years, 9 months ago (2015-03-25 18:22:42 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-03-25 19:51:36 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 19:52:37 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c558244dc68392b18424e1300adc2acfe383746a
Cr-Commit-Position: refs/heads/master@{#322217}

Powered by Google App Engine
This is Rietveld 408576698