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

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc

Issue 2887423002: Add an about:flag to support alternative data saver features (Closed)
Patch Set: fixes Created 3 years, 7 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 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 5 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
6 6
7 namespace data_reduction_proxy { 7 namespace data_reduction_proxy {
8 namespace switches { 8 namespace switches {
9 9
10 // The origin of the data reduction proxy. 10 // The origin of the data reduction proxy.
11 const char kDataReductionProxy[] = "spdy-proxy-auth-origin"; 11 const char kDataReductionProxy[] = "spdy-proxy-auth-origin";
12 12
13 // The URL from which to retrieve the Data Reduction Proxy configuration. 13 // The URL from which to retrieve the Data Reduction Proxy configuration.
14 const char kDataReductionProxyConfigURL[] = "data-reduction-proxy-config-url"; 14 const char kDataReductionProxyConfigURL[] = "data-reduction-proxy-config-url";
15 15
16 // The name of a Data Reduction Proxy experiment to run. These experiments are 16 // The name of a Data Reduction Proxy experiment to run. These experiments are
17 // defined by the proxy server. Use --force-fieldtrials for Data Reduction 17 // defined by the proxy server. Use --force-fieldtrials for Data Reduction
18 // Proxy field trials. 18 // Proxy field trials.
19 const char kDataReductionProxyExperiment[] = "data-reduction-proxy-experiment"; 19 const char kDataReductionProxyExperiment[] = "data-reduction-proxy-experiment";
20 20
21 // Gets the Chrome-Proxy "exp" directive value used by data reduction proxy to
tbansal1 2017/05/23 23:13:34 rm "Gets" and update comment.
RyanSturm 2017/05/23 23:18:11 Done.
22 // receive an alternative back end implementation.
23 const char kDataReductionProxyServerAlternative[] = "alternative";
24
21 // The origin of the data reduction proxy fallback. 25 // The origin of the data reduction proxy fallback.
22 const char kDataReductionProxyFallback[] = "spdy-proxy-auth-fallback"; 26 const char kDataReductionProxyFallback[] = "spdy-proxy-auth-fallback";
23 27
24 // The semicolon-separated list of proxy server URIs to override the list of 28 // The semicolon-separated list of proxy server URIs to override the list of
25 // HTTP proxies returned by the Data Saver API. It is illegal to use 29 // HTTP proxies returned by the Data Saver API. It is illegal to use
26 // |kDataReductionProxy| or |kDataReductionProxyFallback| switch in conjunction 30 // |kDataReductionProxy| or |kDataReductionProxyFallback| switch in conjunction
27 // with |kDataReductionProxyHttpProxies|. If the URI omits a scheme, then the 31 // with |kDataReductionProxyHttpProxies|. If the URI omits a scheme, then the
28 // proxy server scheme defaults to HTTP, and if the port is omitted then the 32 // proxy server scheme defaults to HTTP, and if the port is omitted then the
29 // default port for that scheme is used. E.g. "http://foo.net:80", 33 // default port for that scheme is used. E.g. "http://foo.net:80",
30 // "http://foo.net", "foo.net:80", and "foo.net" are all equivalent. 34 // "http://foo.net", "foo.net:80", and "foo.net" are all equivalent.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Enables sending a pageload metrics pingback after every page load. 83 // Enables sending a pageload metrics pingback after every page load.
80 const char kEnableDataReductionProxyForcePingback[] = 84 const char kEnableDataReductionProxyForcePingback[] =
81 "enable-data-reduction-proxy-force-pingback"; 85 "enable-data-reduction-proxy-force-pingback";
82 86
83 // Enables a 1 MB savings promo for the data reduction proxy. 87 // Enables a 1 MB savings promo for the data reduction proxy.
84 const char kEnableDataReductionProxySavingsPromo[] = 88 const char kEnableDataReductionProxySavingsPromo[] =
85 "enable-data-reduction-proxy-savings-promo"; 89 "enable-data-reduction-proxy-savings-promo";
86 90
87 } // namespace switches 91 } // namespace switches
88 } // namespace data_reduction_proxy 92 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698