AU: Verify source rootfs/kernel hashes before applying delta.

New style full updates will not send the old rootfs hash so no check takes
place.

BUG=7562
TEST=unit tests, gmerged on device and tested with good/bad source partition

Change-Id: I65b28bf57110e4d87472d4aea59121878cde24b0

Review URL: http://codereview.chromium.org/3712003
diff --git a/install_plan.h b/install_plan.h
index 8dc42aa..9911d32 100644
--- a/install_plan.h
+++ b/install_plan.h
@@ -6,6 +6,8 @@
 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_INSTALL_PLAN_H__
 
 #include <string>
+#include <vector>
+
 #include "base/logging.h"
 
 // InstallPlan is a simple struct that contains relevant info for many
@@ -37,6 +39,8 @@
   std::string download_hash;  // hash of the data at the url
   std::string install_path;  // path to install device
   std::string kernel_install_path;  // path to kernel install device
+  std::vector<char> current_kernel_hash;  // computed by FileSystemCopierAction
+  std::vector<char> current_rootfs_hash;  // computed by FileSystemCopierAction
 
   bool operator==(const InstallPlan& that) const {
     return (is_full_update == that.is_full_update) &&