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_BROWSER_DATA_REDUCTION_PROXY_PARAMS
_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PARAMS
_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PARAMS
_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PARAMS
_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 static bool IsLoFiEnabled(); | 104 static bool IsLoFiEnabled(); |
105 | 105 |
106 // Returns true if this client has the command line switch to show | 106 // Returns true if this client has the command line switch to show |
107 // interstitials for data reduction proxy bypasses. | 107 // interstitials for data reduction proxy bypasses. |
108 static bool WarnIfNoDataReductionProxy(); | 108 static bool WarnIfNoDataReductionProxy(); |
109 | 109 |
110 // Returns true if the Data Reduction Proxy supports the scheme of the | 110 // Returns true if the Data Reduction Proxy supports the scheme of the |
111 // provided |url|. | 111 // provided |url|. |
112 static bool CanProxyURLScheme(const GURL& url); | 112 static bool CanProxyURLScheme(const GURL& url); |
113 | 113 |
| 114 // Returns true if this client is part of a field trial that sets the origin |
| 115 // proxy server as quic://proxy.googlezip.net. |
| 116 static bool IsIncludedInQuicFieldTrial(); |
| 117 |
| 118 static std::string GetQuicFieldTrialName(); |
| 119 |
| 120 // If true, uses QUIC instead of SPDY to connect to proxies that use TLS. |
| 121 void EnableQuic(bool enable); |
| 122 |
114 // Constructs configuration parameters. If |kAllowed|, then the standard | 123 // Constructs configuration parameters. If |kAllowed|, then the standard |
115 // data reduction proxy configuration is allowed to be used. If | 124 // data reduction proxy configuration is allowed to be used. If |
116 // |kfallbackAllowed| a fallback proxy can be used if the primary proxy is | 125 // |kfallbackAllowed| a fallback proxy can be used if the primary proxy is |
117 // bypassed or disabled. If |kAlternativeAllowed| then an alternative proxy | 126 // bypassed or disabled. If |kAlternativeAllowed| then an alternative proxy |
118 // configuration is allowed to be used. This alternative configuration would | 127 // configuration is allowed to be used. This alternative configuration would |
119 // replace the primary and fallback proxy configurations if enabled. Finally | 128 // replace the primary and fallback proxy configurations if enabled. Finally |
120 // if |kPromoAllowed|, the client may show a promotion for the data reduction | 129 // if |kPromoAllowed|, the client may show a promotion for the data reduction |
121 // proxy. | 130 // proxy. |
122 // | 131 // |
123 // A standard configuration has a primary proxy, and a fallback proxy for | 132 // A standard configuration has a primary proxy, and a fallback proxy for |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 net::ProxyServer alt_fallback_origin_; | 335 net::ProxyServer alt_fallback_origin_; |
327 GURL probe_url_; | 336 GURL probe_url_; |
328 GURL warmup_url_; | 337 GURL warmup_url_; |
329 | 338 |
330 bool allowed_; | 339 bool allowed_; |
331 bool fallback_allowed_; | 340 bool fallback_allowed_; |
332 bool alt_allowed_; | 341 bool alt_allowed_; |
333 bool alt_fallback_allowed_; | 342 bool alt_fallback_allowed_; |
334 bool promo_allowed_; | 343 bool promo_allowed_; |
335 bool holdback_; | 344 bool holdback_; |
| 345 bool quic_enabled_; |
| 346 std::string override_quic_origin_; |
336 | 347 |
337 bool configured_on_command_line_; | 348 bool configured_on_command_line_; |
338 }; | 349 }; |
339 | 350 |
340 } // namespace data_reduction_proxy | 351 } // namespace data_reduction_proxy |
341 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PAR
AMS_H_ | 352 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PAR
AMS_H_ |
OLD | NEW |