| 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_;
|
|
|
|
|