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

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.h

Issue 2642793005: Create a Lite Page bit for previews and fallback to Lo-Fi (Closed)
Patch Set: remove unused frame_messages.h code Created 3 years, 9 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_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // SPDY/HTTP2 proxy field trial. 45 // SPDY/HTTP2 proxy field trial.
46 bool IsIncludedInTrustedSpdyProxyFieldTrial(); 46 bool IsIncludedInTrustedSpdyProxyFieldTrial();
47 47
48 // Returns true if this client is part of the field trial that should display 48 // Returns true if this client is part of the field trial that should display
49 // a promotion for the data reduction proxy on Android One devices. 49 // a promotion for the data reduction proxy on Android One devices.
50 bool IsIncludedInAndroidOnePromoFieldTrial(base::StringPiece build_fingerprint); 50 bool IsIncludedInAndroidOnePromoFieldTrial(base::StringPiece build_fingerprint);
51 51
52 // Returns the name of the Lo-Fi field trial. 52 // Returns the name of the Lo-Fi field trial.
53 const char* GetLoFiFieldTrialName(); 53 const char* GetLoFiFieldTrialName();
54 54
55 // Returns the name of the Lite Page fallback to Lo-Fi field trial.
56 const char* GetLitePageFallbackFieldTrialName();
57
55 // Returns the name of the Lo-Fi field trial that configures LoFi flags when it 58 // Returns the name of the Lo-Fi field trial that configures LoFi flags when it
56 // is force enabled through flags. 59 // is force enabled through flags.
57 const char* GetLoFiFlagFieldTrialName(); 60 const char* GetLoFiFlagFieldTrialName();
58 61
59 // Returns true if this client is part of the "Enabled" or "Enabled_Preview" 62 // Returns true if this client is part of the "Enabled" or "Enabled_Preview"
60 // group of the Lo-Fi field trial, both of which mean Lo-Fi should be enabled. 63 // group of the Lo-Fi field trial, both of which mean Lo-Fi should be enabled.
61 bool IsIncludedInLoFiEnabledFieldTrial(); 64 bool IsIncludedInLoFiEnabledFieldTrial();
62 65
63 // Returns true if this client is part of the "Control" group of the Lo-Fi field 66 // Returns true if this client is part of the "Control" group of the Lo-Fi field
64 // trial. 67 // trial.
65 bool IsIncludedInLoFiControlFieldTrial(); 68 bool IsIncludedInLoFiControlFieldTrial();
66 69
67 // Returns true if this client is part of the "Preview" group of the Lo-Fi field 70 // Returns true if this client is part of the "Preview" group of the Lo-Fi field
68 // trial. 71 // trial.
69 bool IsIncludedInLitePageFieldTrial(); 72 bool IsIncludedInLitePageFieldTrial();
70 73
74 // Returns true if this client is part of the Lite Page fallback to Lo-Fi field
75 // trial or if this client has the command line switch to enable lite pages,
76 // which should always fallback.
77 bool IsLitePageFallbackEnabled();
78
71 // Returns true if this client is part of the field trial that should enable 79 // Returns true if this client is part of the field trial that should enable
72 // server experiments for the data reduction proxy. 80 // server experiments for the data reduction proxy.
73 bool IsIncludedInServerExperimentsFieldTrial(); 81 bool IsIncludedInServerExperimentsFieldTrial();
74 82
75 // Returns true if this client is part of the tamper detection experiment. 83 // Returns true if this client is part of the tamper detection experiment.
76 bool IsIncludedInTamperDetectionExperiment(); 84 bool IsIncludedInTamperDetectionExperiment();
77 85
78 // Returns true if this client has any of the values to enable Lo-Fi mode for 86 // Returns true if this client has any of the values to enable Lo-Fi mode for
79 // the "data-reduction-proxy-lo-fi" command line switch. This includes the 87 // the "data-reduction-proxy-lo-fi" command line switch. This includes the
80 // "always-on", "cellular-only", and "slow-connections-only" values. 88 // "always-on", "cellular-only", and "slow-connections-only" values.
(...skipping 10 matching lines...) Expand all
91 // Returns true if this client has the command line switch to enable Lo-Fi 99 // Returns true if this client has the command line switch to enable Lo-Fi
92 // mode only on slow connections. 100 // mode only on slow connections.
93 bool IsLoFiSlowConnectionsOnlyViaFlags(); 101 bool IsLoFiSlowConnectionsOnlyViaFlags();
94 102
95 // Returns true if this client has the command line switch to disable Lo-Fi 103 // Returns true if this client has the command line switch to disable Lo-Fi
96 // mode. 104 // mode.
97 bool IsLoFiDisabledViaFlags(); 105 bool IsLoFiDisabledViaFlags();
98 106
99 // Returns true if this client has the command line switch to enable lite pages. 107 // Returns true if this client has the command line switch to enable lite pages.
100 // This means a preview should be requested instead of placeholders whenever 108 // This means a preview should be requested instead of placeholders whenever
101 // Lo-Fi mode is on. 109 // Lo-Fi mode is on. If Lite Pages are enabled via flags, they will always
110 // fallback to Lo-Fi placeholders.
102 bool AreLitePagesEnabledViaFlags(); 111 bool AreLitePagesEnabledViaFlags();
103 112
104 // Returns true if this client has the command line switch to enable forced 113 // Returns true if this client has the command line switch to enable forced
105 // pageload metrics pingbacks on every page load. 114 // pageload metrics pingbacks on every page load.
106 bool IsForcePingbackEnabledViaFlags(); 115 bool IsForcePingbackEnabledViaFlags();
107 116
108 // 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
109 // interstitials for data reduction proxy bypasses. 118 // interstitials for data reduction proxy bypasses.
110 bool WarnIfNoDataReductionProxy(); 119 bool WarnIfNoDataReductionProxy();
111 120
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 248
240 bool use_override_proxies_for_http_; 249 bool use_override_proxies_for_http_;
241 std::vector<DataReductionProxyServer> override_data_reduction_proxy_servers_; 250 std::vector<DataReductionProxyServer> override_data_reduction_proxy_servers_;
242 251
243 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams); 252 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams);
244 }; 253 };
245 254
246 } // namespace data_reduction_proxy 255 } // namespace data_reduction_proxy
247 256
248 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARA MS_H_ 257 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PARA MS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698