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

Side by Side Diff: prefs_interface.h

Issue 3617002: AU: Fall back to full updates after a number of failed delta update attempts. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: remove leftover log 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.h » ('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 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
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__
OLDNEW
« no previous file with comments | « prefs.cc ('k') | update_attempter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698