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 "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" | 5 #include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" |
6 | 6 |
7 #include "base/prefs/pref_registry_simple.h" | 7 #include "base/prefs/pref_registry_simple.h" |
8 #include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names
.h" | 8 #include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names
.h" |
9 #include "components/user_prefs/pref_registry_syncable.h" | 9 #include "components/user_prefs/pref_registry_syncable.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 registry->RegisterBooleanPref( | 28 registry->RegisterBooleanPref( |
29 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, | 29 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, |
30 false); | 30 false); |
31 } | 31 } |
32 | 32 |
33 void RegisterPrefs(PrefRegistrySimple* registry) { | 33 void RegisterPrefs(PrefRegistrySimple* registry) { |
34 registry->RegisterInt64Pref( | 34 registry->RegisterInt64Pref( |
35 prefs::kHttpReceivedContentLength, 0); | 35 prefs::kHttpReceivedContentLength, 0); |
36 registry->RegisterInt64Pref( | 36 registry->RegisterInt64Pref( |
37 prefs::kHttpOriginalContentLength, 0); | 37 prefs::kHttpOriginalContentLength, 0); |
38 #if defined(OS_ANDROID) || defined(OS_IOS) | |
39 registry->RegisterListPref( | 38 registry->RegisterListPref( |
40 prefs::kDailyHttpOriginalContentLength); | 39 prefs::kDailyHttpOriginalContentLength); |
41 registry->RegisterListPref( | 40 registry->RegisterListPref( |
42 prefs::kDailyHttpReceivedContentLength); | 41 prefs::kDailyHttpReceivedContentLength); |
43 registry->RegisterListPref( | 42 registry->RegisterListPref( |
44 prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled); | 43 prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled); |
45 registry->RegisterListPref( | 44 registry->RegisterListPref( |
46 prefs::kDailyContentLengthWithDataReductionProxyEnabled); | 45 prefs::kDailyContentLengthWithDataReductionProxyEnabled); |
47 registry->RegisterListPref( | 46 registry->RegisterListPref( |
48 prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled); | 47 prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled); |
49 registry->RegisterListPref( | 48 registry->RegisterListPref( |
50 prefs::kDailyContentLengthShortBypassWithDataReductionProxyEnabled); | 49 prefs::kDailyContentLengthShortBypassWithDataReductionProxyEnabled); |
51 registry->RegisterListPref( | 50 registry->RegisterListPref( |
52 prefs::kDailyContentLengthLongBypassWithDataReductionProxyEnabled); | 51 prefs::kDailyContentLengthLongBypassWithDataReductionProxyEnabled); |
53 registry->RegisterListPref( | 52 registry->RegisterListPref( |
54 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); | 53 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); |
55 registry->RegisterListPref( | 54 registry->RegisterListPref( |
56 prefs::kDailyOriginalContentLengthViaDataReductionProxy); | 55 prefs::kDailyOriginalContentLengthViaDataReductionProxy); |
57 registry->RegisterListPref( | 56 registry->RegisterListPref( |
58 prefs::kDailyContentLengthViaDataReductionProxy); | 57 prefs::kDailyContentLengthViaDataReductionProxy); |
59 registry->RegisterInt64Pref( | 58 registry->RegisterInt64Pref( |
60 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); | 59 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); |
61 #endif | |
62 } | 60 } |
63 | 61 |
64 } // namespace data_reduction_proxy | 62 } // namespace data_reduction_proxy |
OLD | NEW |