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
3 // found in the LICENSE file.
5 #include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h"
7 namespace data_reduction_proxy
{
10 // A List pref that contains daily totals of the size of all HTTPS
11 // content received when the data reduction proxy was enabled.
12 const char kDailyContentLengthHttpsWithDataReductionProxyEnabled
[] =
13 "data_reduction.daily_received_length_https_with_"
14 "data_reduction_proxy_enabled";
16 // A List pref that contains daily totals of the size of all HTTP/HTTPS
17 // content received when a bypass of more than 30 minutes is in effect.
18 const char kDailyContentLengthLongBypassWithDataReductionProxyEnabled
[] =
19 "data_reduction.daily_received_length_long_bypass_with_"
20 "data_reduction_proxy_enabled";
22 // A List pref that contains daily totals of the size of all HTTP/HTTPS
23 // content received when a bypass of less than 30 minutes is in effect.
24 const char kDailyContentLengthShortBypassWithDataReductionProxyEnabled
[] =
25 "data_reduction.daily_received_length_short_bypass_with_"
26 "data_reduction_proxy_enabled";
28 // TODO(bengr): what is this?
29 const char kDailyContentLengthUnknownWithDataReductionProxyEnabled
[] =
30 "data_reduction.daily_received_length_unknown_with_"
31 "data_reduction_proxy_enabled";
33 // A List pref that contains daily totals of the size of all HTTP/HTTPS
34 // content received via the data reduction proxy.
35 const char kDailyContentLengthViaDataReductionProxy
[] =
36 "data_reduction.daily_received_length_via_data_reduction_proxy";
38 // A List pref that contains daily totals of the size of all HTTP/HTTPS
39 // content received while the data reduction proxy is enabled.
40 const char kDailyContentLengthWithDataReductionProxyEnabled
[] =
41 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled";
43 // An int64 pref that contains an internal representation of midnight on the
44 // date of the last update to |kDailyHttp{Original,Received}ContentLength|.
45 const char kDailyHttpContentLengthLastUpdateDate
[] =
46 "data_reduction.last_update_date";
48 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
49 // content received from the network.
50 const char kDailyHttpOriginalContentLength
[] =
51 "data_reduction.daily_original_length";
53 // A List pref that contains daily totals of the size of all HTTP/HTTPS content
54 // received from the network.
55 const char kDailyHttpReceivedContentLength
[] =
56 "data_reduction.daily_received_length";
58 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
59 // content received via the data reduction proxy.
60 const char kDailyOriginalContentLengthViaDataReductionProxy
[] =
61 "data_reduction.daily_original_length_via_data_reduction_proxy";
63 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
64 // content received while the data reduction proxy is enabled.
65 const char kDailyOriginalContentLengthWithDataReductionProxyEnabled
[] =
66 "data_reduction.daily_original_length_with_data_reduction_proxy_enabled";
68 // String that specifies the origin allowed to use data reduction proxy
69 // authentication, if any.
70 const char kDataReductionProxy
[] = "auth.spdyproxy.origin";
72 // A boolean specifying whether the data reduction proxy is enabled.
73 const char kDataReductionProxyEnabled
[] = "spdy_proxy.enabled";
75 // A boolean specifying whether the data reduction proxy alternative is enabled.
76 const char kDataReductionProxyAltEnabled
[] = "data_reduction_alt.enabled";
78 // A boolean specifying whether the data reduction proxy was ever enabled
80 const char kDataReductionProxyWasEnabledBefore
[] =
81 "spdy_proxy.was_enabled_before";
83 // An int64 pref that contains the total size of all HTTP content received from
85 const char kHttpReceivedContentLength
[] = "http_received_content_length";
87 // An int64 pref that contains the total original size of all HTTP content
88 // received over the network.
89 const char kHttpOriginalContentLength
[] = "http_original_content_length";
92 } // namespace data_reduction_proxy