OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace chromeos_update_engine { | 10 namespace chromeos_update_engine { |
11 | 11 |
| 12 extern const char kPrefsDeltaUpdateFailures[]; |
12 extern const char kPrefsLastActivePingDay[]; | 13 extern const char kPrefsLastActivePingDay[]; |
13 extern const char kPrefsLastRollCallPingDay[]; | 14 extern const char kPrefsLastRollCallPingDay[]; |
14 | 15 |
15 // The prefs interface allows access to a persistent preferences | 16 // The prefs interface allows access to a persistent preferences |
16 // store. The two reasons for providing this as an interface are | 17 // store. The two reasons for providing this as an interface are |
17 // testing as well as easier switching to a new implementation in the | 18 // testing as well as easier switching to a new implementation in the |
18 // future, if necessary. | 19 // future, if necessary. |
19 | 20 |
20 class PrefsInterface { | 21 class PrefsInterface { |
21 public: | 22 public: |
(...skipping 14 matching lines...) Expand all Loading... |
36 // Associates |key| with an int64 |value|. Returns true on success, | 37 // Associates |key| with an int64 |value|. Returns true on success, |
37 // false otherwise. | 38 // false otherwise. |
38 virtual bool SetInt64(const std::string& key, const int64_t value) = 0; | 39 virtual bool SetInt64(const std::string& key, const int64_t value) = 0; |
39 | 40 |
40 virtual ~PrefsInterface() {} | 41 virtual ~PrefsInterface() {} |
41 }; | 42 }; |
42 | 43 |
43 } // namespace chromeos_update_engine | 44 } // namespace chromeos_update_engine |
44 | 45 |
45 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ | 46 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ |
OLD | NEW |