| 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_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // an alternative set of proxies is allowed to be used, if the promotion is | 49 // an alternative set of proxies is allowed to be used, if the promotion is |
| 50 // allowed to be shown, and if this instance is part of a holdback experiment. | 50 // allowed to be shown, and if this instance is part of a holdback experiment. |
| 51 static const unsigned int kAllowed = (1 << 0); | 51 static const unsigned int kAllowed = (1 << 0); |
| 52 static const unsigned int kFallbackAllowed = (1 << 1); | 52 static const unsigned int kFallbackAllowed = (1 << 1); |
| 53 static const unsigned int kAlternativeAllowed = (1 << 2); | 53 static const unsigned int kAlternativeAllowed = (1 << 2); |
| 54 static const unsigned int kPromoAllowed = (1 << 3); | 54 static const unsigned int kPromoAllowed = (1 << 3); |
| 55 static const unsigned int kHoldback = (1 << 4); | 55 static const unsigned int kHoldback = (1 << 4); |
| 56 | 56 |
| 57 typedef std::vector<GURL> DataReductionProxyList; | 57 typedef std::vector<GURL> DataReductionProxyList; |
| 58 | 58 |
| 59 // Returns true if this client is part of the data reduction proxy field | |
| 60 // trial. | |
| 61 static bool IsIncludedInFieldTrial(); | |
| 62 | |
| 63 // Returns true if this client is part of field trial to use an alternative | 59 // Returns true if this client is part of field trial to use an alternative |
| 64 // configuration for the data reduction proxy. | 60 // configuration for the data reduction proxy. |
| 65 static bool IsIncludedInAlternativeFieldTrial(); | 61 static bool IsIncludedInAlternativeFieldTrial(); |
| 66 | 62 |
| 67 // Returns true if this client is part of the field trial that should display | 63 // Returns true if this client is part of the field trial that should display |
| 68 // a promotion for the data reduction proxy. | 64 // a promotion for the data reduction proxy. |
| 69 static bool IsIncludedInPromoFieldTrial(); | 65 static bool IsIncludedInPromoFieldTrial(); |
| 70 | 66 |
| 71 // Returns true if this client is part of a field trial that uses preconnect | 67 // Returns true if this client is part of a field trial that uses preconnect |
| 72 // hinting. | 68 // hinting. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 bool fallback_allowed_; | 279 bool fallback_allowed_; |
| 284 bool alt_allowed_; | 280 bool alt_allowed_; |
| 285 bool promo_allowed_; | 281 bool promo_allowed_; |
| 286 bool holdback_; | 282 bool holdback_; |
| 287 | 283 |
| 288 bool configured_on_command_line_; | 284 bool configured_on_command_line_; |
| 289 }; | 285 }; |
| 290 | 286 |
| 291 } // namespace data_reduction_proxy | 287 } // namespace data_reduction_proxy |
| 292 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H
_ | 288 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H
_ |
| OLD | NEW |