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

Side by Side Diff: prefs_interface.h

Issue 3521016: AU: Start checkpointing update progress. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: address review comments Created 10 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « prefs.cc ('k') | update_attempter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 kPrefsDeltaUpdateFailures[];
13 extern const char kPrefsLastActivePingDay[]; 13 extern const char kPrefsLastActivePingDay[];
14 extern const char kPrefsLastRollCallPingDay[]; 14 extern const char kPrefsLastRollCallPingDay[];
15 extern const char kPrefsManifestMetadataSize[];
16 extern const char kPrefsUpdateCheckResponseHash[];
17 extern const char kPrefsUpdateStateNextDataOffset[];
18 extern const char kPrefsUpdateStateNextOperation[];
19 extern const char kPrefsUpdateStateSignedSHA256Context[];
15 20
16 // The prefs interface allows access to a persistent preferences 21 // The prefs interface allows access to a persistent preferences
17 // store. The two reasons for providing this as an interface are 22 // store. The two reasons for providing this as an interface are
18 // testing as well as easier switching to a new implementation in the 23 // testing as well as easier switching to a new implementation in the
19 // future, if necessary. 24 // future, if necessary.
20 25
21 class PrefsInterface { 26 class PrefsInterface {
22 public: 27 public:
23 // Gets a string |value| associated with |key|. Returns true on 28 // Gets a string |value| associated with |key|. Returns true on
24 // success, false on failure (including when the |key| is not 29 // success, false on failure (including when the |key| is not
(...skipping 12 matching lines...) Expand all
37 // Associates |key| with an int64 |value|. Returns true on success, 42 // Associates |key| with an int64 |value|. Returns true on success,
38 // false otherwise. 43 // false otherwise.
39 virtual bool SetInt64(const std::string& key, const int64_t value) = 0; 44 virtual bool SetInt64(const std::string& key, const int64_t value) = 0;
40 45
41 virtual ~PrefsInterface() {} 46 virtual ~PrefsInterface() {}
42 }; 47 };
43 48
44 } // namespace chromeos_update_engine 49 } // namespace chromeos_update_engine
45 50
46 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__ 51 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_INTERFACE_H__
OLDNEW
« no previous file with comments | « prefs.cc ('k') | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698