AU: Start checkpointing update progress.

Checkpoint the manifest metadata size and the update
check response hash in the preference store. Also checkpoint
the next operation and data offset.
Add methods for getting/setting hash context.

BUG=7390,7394
TEST=unit tests

Change-Id: I25291bf598ac9b0f1033e11cfe59df45b1f6eeab

Review URL: http://codereview.chromium.org/3521016
diff --git a/omaha_response_handler_action.h b/omaha_response_handler_action.h
index b5feabd..2845df5 100644
--- a/omaha_response_handler_action.h
+++ b/omaha_response_handler_action.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -16,6 +16,7 @@
 namespace chromeos_update_engine {
 
 class OmahaResponseHandlerAction;
+class PrefsInterface;
 
 template<>
 class ActionTraits<OmahaResponseHandlerAction> {
@@ -26,7 +27,9 @@
 
 class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
  public:
-  OmahaResponseHandlerAction() : got_no_update_response_(false) {}
+  OmahaResponseHandlerAction(PrefsInterface* prefs)
+      : prefs_(prefs),
+        got_no_update_response_(false) {}
   typedef ActionTraits<OmahaResponseHandlerAction>::InputObjectType
       InputObjectType;
   typedef ActionTraits<OmahaResponseHandlerAction>::OutputObjectType
@@ -57,6 +60,9 @@
   static bool GetInstallDev(const std::string& boot_dev,
                             std::string* install_dev);
 
+  // Update Engine preference store.
+  PrefsInterface* prefs_;
+
   // set to non-empty in unit tests
   std::string boot_device_;