diff options
Diffstat (limited to 'aosp/apex_handler_interface.h')
-rw-r--r-- | aosp/apex_handler_interface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/aosp/apex_handler_interface.h b/aosp/apex_handler_interface.h index c3399b61..b9b6c96f 100644 --- a/aosp/apex_handler_interface.h +++ b/aosp/apex_handler_interface.h @@ -19,6 +19,8 @@ #include <vector> +#include <android-base/result.h> + #include "update_engine/update_metadata.pb.h" namespace chromeos_update_engine { @@ -26,9 +28,9 @@ namespace chromeos_update_engine { class ApexHandlerInterface { public: virtual ~ApexHandlerInterface() = default; - virtual uint64_t CalculateSize( + virtual android::base::Result<uint64_t> CalculateSize( const std::vector<ApexInfo>& apex_infos) const = 0; - virtual bool AllocateSpace(const uint64_t size_required) const = 0; + virtual bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const = 0; }; } // namespace chromeos_update_engine |