| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARAMS_
H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARAMS_
H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARAMS_
H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARAMS_
H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool IsForcePingbackEnabledViaFlags(); | 115 bool IsForcePingbackEnabledViaFlags(); |
| 116 | 116 |
| 117 // Returns true if this client has the command line switch to show | 117 // Returns true if this client has the command line switch to show |
| 118 // interstitials for data reduction proxy bypasses. | 118 // interstitials for data reduction proxy bypasses. |
| 119 bool WarnIfNoDataReductionProxy(); | 119 bool WarnIfNoDataReductionProxy(); |
| 120 | 120 |
| 121 // Returns true if this client is part of a field trial that sets the origin | 121 // Returns true if this client is part of a field trial that sets the origin |
| 122 // proxy server as quic://proxy.googlezip.net. | 122 // proxy server as quic://proxy.googlezip.net. |
| 123 bool IsIncludedInQuicFieldTrial(); | 123 bool IsIncludedInQuicFieldTrial(); |
| 124 | 124 |
| 125 // Returns true if QUIC is enabled for non core data reduction proxies. |
| 126 bool IsQuicEnabledForNonCoreProxies(); |
| 127 |
| 125 const char* GetQuicFieldTrialName(); | 128 const char* GetQuicFieldTrialName(); |
| 126 | 129 |
| 127 // Returns true if Brotli should be added to the accept-encoding header. | 130 // Returns true if Brotli should be added to the accept-encoding header. |
| 128 bool IsBrotliAcceptEncodingEnabled(); | 131 bool IsBrotliAcceptEncodingEnabled(); |
| 129 | 132 |
| 130 // Returns true if the Data Reduction Proxy config client should be used. | 133 // Returns true if the Data Reduction Proxy config client should be used. |
| 131 bool IsConfigClientEnabled(); | 134 bool IsConfigClientEnabled(); |
| 132 | 135 |
| 133 // If the Data Reduction Proxy is used for a page load, the URL for the | 136 // If the Data Reduction Proxy is used for a page load, the URL for the |
| 134 // Data Reduction Proxy Pageload Metrics service. | 137 // Data Reduction Proxy Pageload Metrics service. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 251 |
| 249 bool use_override_proxies_for_http_; | 252 bool use_override_proxies_for_http_; |
| 250 std::vector<DataReductionProxyServer> override_data_reduction_proxy_servers_; | 253 std::vector<DataReductionProxyServer> override_data_reduction_proxy_servers_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams); | 255 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 } // namespace data_reduction_proxy | 258 } // namespace data_reduction_proxy |
| 256 | 259 |
| 257 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARA
MS_H_ | 260 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARA
MS_H_ |
| OLD | NEW |