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

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

Issue 332313003: Add Finch experiment for selectively bypassing proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2-line change: Add missing ifdef(SPDY_PROXY_AUTH_ORIGIN); previously only compiled on android, but … Created 6 years, 5 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 29 matching lines...) Expand all
40 static bool IsIncludedInAlternativeFieldTrial(); 40 static bool IsIncludedInAlternativeFieldTrial();
41 41
42 // Returns true if this client is part of the field trial that should display 42 // Returns true if this client is part of the field trial that should display
43 // a promotion for the data reduction proxy. 43 // a promotion for the data reduction proxy.
44 static bool IsIncludedInPromoFieldTrial(); 44 static bool IsIncludedInPromoFieldTrial();
45 45
46 // Returns true if this client is part of a field trial that uses preconnect 46 // Returns true if this client is part of a field trial that uses preconnect
47 // hinting. 47 // hinting.
48 static bool IsIncludedInPreconnectHintingFieldTrial(); 48 static bool IsIncludedInPreconnectHintingFieldTrial();
49 49
50 // Returns true if this client is part of a field trial that bypasses the
51 // proxy if the request resource type is on the critical path (e.g. HTML).
52 static bool IsIncludedInCriticalPathBypassFieldTrial();
53
50 // Constructs configuration parameters. If |kAllowed|, then the standard 54 // Constructs configuration parameters. If |kAllowed|, then the standard
51 // data reduction proxy configuration is allowed to be used. If 55 // data reduction proxy configuration is allowed to be used. If
52 // |kfallbackAllowed| a fallback proxy can be used if the primary proxy is 56 // |kfallbackAllowed| a fallback proxy can be used if the primary proxy is
53 // bypassed or disabled. If |kAlternativeAllowed| then an alternative proxy 57 // bypassed or disabled. If |kAlternativeAllowed| then an alternative proxy
54 // configuration is allowed to be used. This alternative configuration would 58 // configuration is allowed to be used. This alternative configuration would
55 // replace the primary and fallback proxy configurations if enabled. Finally 59 // replace the primary and fallback proxy configurations if enabled. Finally
56 // if |kPromoAllowed|, the client may show a promotion for the data reduction 60 // if |kPromoAllowed|, the client may show a promotion for the data reduction
57 // proxy. 61 // proxy.
58 // 62 //
59 // A standard configuration has a primary proxy, and a fallback proxy for 63 // A standard configuration has a primary proxy, and a fallback proxy for
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool alt_allowed_; 199 bool alt_allowed_;
196 const bool promo_allowed_; 200 const bool promo_allowed_;
197 201
198 bool configured_on_command_line_; 202 bool configured_on_command_line_;
199 203
200 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams); 204 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams);
201 }; 205 };
202 206
203 } // namespace data_reduction_proxy 207 } // namespace data_reduction_proxy
204 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _ 208 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698