|
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}
Total comments: 22
|
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
|
Total messages: 9 (2 generated)
|