Take partition size into account when reporting progress

Partitions sizes are extremely uneven, for better UX, take partition
sizes into account when reporting progress for filesystem verification
stage.

Test: th
Bug: 239316848
Change-Id: I0932251b13b2b766aabc3a5b69604b09e4475b33
diff --git a/payload_consumer/filesystem_verifier_action.h b/payload_consumer/filesystem_verifier_action.h
index edc8e53..dd48eff 100644
--- a/payload_consumer/filesystem_verifier_action.h
+++ b/payload_consumer/filesystem_verifier_action.h
@@ -172,6 +172,11 @@
   // points to pending read callbacks from async stream.
   ScopedTaskId pending_task_id_;
 
+  // Cumulative sum of partition sizes. Used for progress report.
+  // This vector will always start with 0, and end with total size of all
+  // partitions.
+  std::vector<size_t> partition_weight_;
+
   DISALLOW_COPY_AND_ASSIGN(FilesystemVerifierAction);
 };