AU: Resume interrupted update attempts.

BUG=7390,7520
TEST=unit tests

Change-Id: I9baf72aa444dd855409f865f03fb665e91f8d03d

Review URL: http://codereview.chromium.org/3620013
diff --git a/delta_performer.h b/delta_performer.h
index 5425ea5..051d605 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -83,8 +83,10 @@
                               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 @@
   // 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_;