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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.h

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // an alternative set of proxies is allowed to be used, if the promotion is 48 // an alternative set of proxies is allowed to be used, if the promotion is
49 // allowed to be shown, and if this instance is part of a holdback experiment. 49 // allowed to be shown, and if this instance is part of a holdback experiment.
50 static const unsigned int kAllowed = (1 << 0); 50 static const unsigned int kAllowed = (1 << 0);
51 static const unsigned int kFallbackAllowed = (1 << 1); 51 static const unsigned int kFallbackAllowed = (1 << 1);
52 static const unsigned int kAlternativeAllowed = (1 << 2); 52 static const unsigned int kAlternativeAllowed = (1 << 2);
53 static const unsigned int kPromoAllowed = (1 << 3); 53 static const unsigned int kPromoAllowed = (1 << 3);
54 static const unsigned int kHoldback = (1 << 4); 54 static const unsigned int kHoldback = (1 << 4);
55 55
56 typedef std::vector<GURL> DataReductionProxyList; 56 typedef std::vector<GURL> DataReductionProxyList;
57 57
58 // Returns true if this client is part of the data reduction proxy field
59 // trial.
60 static bool IsIncludedInFieldTrial();
61
62 // Returns true if this client is part of field trial to use an alternative 58 // Returns true if this client is part of field trial to use an alternative
63 // configuration for the data reduction proxy. 59 // configuration for the data reduction proxy.
64 static bool IsIncludedInAlternativeFieldTrial(); 60 static bool IsIncludedInAlternativeFieldTrial();
65 61
66 // Returns true if this client is part of the field trial that should display 62 // Returns true if this client is part of the field trial that should display
67 // a promotion for the data reduction proxy. 63 // a promotion for the data reduction proxy.
68 static bool IsIncludedInPromoFieldTrial(); 64 static bool IsIncludedInPromoFieldTrial();
69 65
70 // Returns true if this client is part of a field trial that uses preconnect 66 // Returns true if this client is part of a field trial that uses preconnect
71 // hinting. 67 // hinting.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 bool fallback_allowed_; 271 bool fallback_allowed_;
276 bool alt_allowed_; 272 bool alt_allowed_;
277 bool promo_allowed_; 273 bool promo_allowed_;
278 bool holdback_; 274 bool holdback_;
279 275
280 bool configured_on_command_line_; 276 bool configured_on_command_line_;
281 }; 277 };
282 278
283 } // namespace data_reduction_proxy 279 } // namespace data_reduction_proxy
284 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _ 280 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698