OLD | NEW |
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 <stdint.h> |
| 6 |
5 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" | 7 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" |
6 | 8 |
7 namespace data_reduction_proxy { | 9 namespace data_reduction_proxy { |
8 namespace prefs { | 10 namespace prefs { |
9 | 11 |
10 // A List pref that contains daily totals of the size of all HTTPS | 12 // A List pref that contains daily totals of the size of all HTTPS |
11 // content received when the data reduction proxy was enabled. | 13 // content received when the data reduction proxy was enabled. |
12 const char kDailyContentLengthHttpsWithDataReductionProxyEnabled[] = | 14 const char kDailyContentLengthHttpsWithDataReductionProxyEnabled[] = |
13 "data_reduction.daily_received_length_https_with_" | 15 "data_reduction.daily_received_length_https_with_" |
14 "data_reduction_proxy_enabled"; | 16 "data_reduction_proxy_enabled"; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_" | 71 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_" |
70 "video"; | 72 "video"; |
71 | 73 |
72 // A List pref that contains daily totals of the size of all HTTP/HTTPS | 74 // A List pref that contains daily totals of the size of all HTTP/HTTPS |
73 // content with unknown mime-type received while the data reduction proxy is | 75 // content with unknown mime-type received while the data reduction proxy is |
74 // enabled. | 76 // enabled. |
75 const char kDailyContentLengthWithDataReductionProxyEnabledUnknown[] = | 77 const char kDailyContentLengthWithDataReductionProxyEnabledUnknown[] = |
76 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_" | 78 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_" |
77 "unknown"; | 79 "unknown"; |
78 | 80 |
79 // An int64 pref that contains an internal representation of midnight on the | 81 // An int64_t pref that contains an internal representation of midnight on the |
80 // date of the last update to |kDailyHttp{Original,Received}ContentLength|. | 82 // date of the last update to |kDailyHttp{Original,Received}ContentLength|. |
81 const char kDailyHttpContentLengthLastUpdateDate[] = | 83 const char kDailyHttpContentLengthLastUpdateDate[] = |
82 "data_reduction.last_update_date"; | 84 "data_reduction.last_update_date"; |
83 | 85 |
84 // A List pref that contains daily totals of the original size of all HTTP/HTTPS | 86 // A List pref that contains daily totals of the original size of all HTTP/HTTPS |
85 // content received from the network. | 87 // content received from the network. |
86 const char kDailyHttpOriginalContentLength[] = | 88 const char kDailyHttpOriginalContentLength[] = |
87 "data_reduction.daily_original_length"; | 89 "data_reduction.daily_original_length"; |
88 | 90 |
89 // A List pref that contains daily totals of the original size of all HTTP/HTTPS | 91 // A List pref that contains daily totals of the original size of all HTTP/HTTPS |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 const char kDataReductionProxyConfig[] = "data_reduction.config"; | 178 const char kDataReductionProxyConfig[] = "data_reduction.config"; |
177 | 179 |
178 // A boolean specifying whether data usage should be collected for reporting. | 180 // A boolean specifying whether data usage should be collected for reporting. |
179 const char kDataUsageReportingEnabled[] = "data_usage_reporting.enabled"; | 181 const char kDataUsageReportingEnabled[] = "data_usage_reporting.enabled"; |
180 | 182 |
181 // A boolean specifying whether the data reduction proxy was ever enabled | 183 // A boolean specifying whether the data reduction proxy was ever enabled |
182 // before. | 184 // before. |
183 const char kDataReductionProxyWasEnabledBefore[] = | 185 const char kDataReductionProxyWasEnabledBefore[] = |
184 "spdy_proxy.was_enabled_before"; | 186 "spdy_proxy.was_enabled_before"; |
185 | 187 |
186 // An int64 pref that contains the total size of all HTTP content received from | 188 // An int64_t pref that contains the total size of all HTTP content received |
187 // the network. | 189 // from the network. |
188 const char kHttpReceivedContentLength[] = "http_received_content_length"; | 190 const char kHttpReceivedContentLength[] = "http_received_content_length"; |
189 | 191 |
190 // An int64 pref that contains the total original size of all HTTP content | 192 // An int64_t pref that contains the total original size of all HTTP content |
191 // received over the network. | 193 // received over the network. |
192 const char kHttpOriginalContentLength[] = "http_original_content_length"; | 194 const char kHttpOriginalContentLength[] = "http_original_content_length"; |
193 | 195 |
194 // An integer pref that contains the Lo-Fi epoch for the implicit opt-out rules. | 196 // An integer pref that contains the Lo-Fi epoch for the implicit opt-out rules. |
195 // Any time this value is incremented via Finch, | 197 // Any time this value is incremented via Finch, |
196 // kLoFiConsecutiveSessionDisables is reset to zero. | 198 // kLoFiConsecutiveSessionDisables is reset to zero. |
197 const char kLoFiImplicitOptOutEpoch[] = | 199 const char kLoFiImplicitOptOutEpoch[] = |
198 "data_reduction_lo_fi.implicit_opt_out_epoch"; | 200 "data_reduction_lo_fi.implicit_opt_out_epoch"; |
199 | 201 |
200 // An integer pref that contains the number of times that "Load images" Lo-Fi | 202 // An integer pref that contains the number of times that "Load images" Lo-Fi |
(...skipping 29 matching lines...) Expand all Loading... |
230 | 232 |
231 // Pref to indicate that the kDailyHttpOriginalContentLength and | 233 // Pref to indicate that the kDailyHttpOriginalContentLength and |
232 // kDailyHttpReceivedContentLength prefs must be updated with their latest | 234 // kDailyHttpReceivedContentLength prefs must be updated with their latest |
233 // value. These values are cached in memory on platforms other than Android and | 235 // value. These values are cached in memory on platforms other than Android and |
234 // iOS for performance reasons. | 236 // iOS for performance reasons. |
235 const char kUpdateDailyReceivedContentLengths[] = | 237 const char kUpdateDailyReceivedContentLengths[] = |
236 "data_reduction.update_daily_lengths"; | 238 "data_reduction.update_daily_lengths"; |
237 | 239 |
238 } // namespace prefs | 240 } // namespace prefs |
239 } // namespace data_reduction_proxy | 241 } // namespace data_reduction_proxy |
OLD | NEW |