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

Unified Diff: delta_performer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | delta_performer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_performer.h
diff --git a/delta_performer.h b/delta_performer.h
index 82f4d90623cfa8087625139702f277a312dd0c17..2f9fd8a7906a9ee6e5dcc31dee202c55c3fdf864 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -17,13 +17,16 @@
namespace chromeos_update_engine {
+class PrefsInterface;
+
// This class performs the actions in a delta update synchronously. The delta
// update itself should be passed in in chunks as it is received.
class DeltaPerformer : public FileWriter {
public:
- DeltaPerformer()
- : fd_(-1),
+ DeltaPerformer(PrefsInterface* prefs)
+ : prefs_(prefs),
+ fd_(-1),
kernel_fd_(-1),
manifest_valid_(false),
next_operation_num_(0),
@@ -99,6 +102,12 @@ class DeltaPerformer : public FileWriter {
// updates the hash calculator with these bytes before discarding them.
void DiscardBufferHeadBytes(size_t count, bool do_hash);
+ bool ResetUpdateProgress();
+ bool CheckpointUpdateProgress();
+
+ // Update Engine preference store.
+ PrefsInterface* prefs_;
+
// File descriptor of open device.
int fd_;
« no previous file with comments | « no previous file | delta_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698