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

Unified Diff: delta_performer.h

Issue 3620013: AU: Resume interrupted update attempts. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: fix setup download 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 5425ea51c1942e5bc05125fb06ed790e4d17fc0e..051d605a2303ee9117ff093527e3ac461ae1290e 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -83,8 +83,10 @@ class DeltaPerformer : public FileWriter {
std::string update_check_response_hash);
// Resets the persistent update progress state to indicate that an update
- // can't be resumed. Returns true on success, false otherwise.
- static bool ResetUpdateProgress(PrefsInterface* prefs);
+ // can't be resumed. Performs a quick update-in-progress reset if |quick| is
+ // true, otherwise resets all progress-related update state. Returns true on
+ // success, false otherwise.
+ static bool ResetUpdateProgress(PrefsInterface* prefs, bool quick);
private:
// Returns true if enough of the delta file has been passed via Write()
@@ -120,6 +122,11 @@ class DeltaPerformer : public FileWriter {
// update attempt to be resumed after reboot.
bool CheckpointUpdateProgress();
+ // Primes the required update state. Returns true if the update state was
+ // successfully initialized to a saved resume state or if the update is a new
+ // update. Returns false otherwise.
+ bool PrimeUpdateState();
+
// Update Engine preference store.
PrefsInterface* prefs_;
« 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