7 #ifndef PACKAGER_MEDIA_BASE_PSSH_GENERATOR_H_ 8 #define PACKAGER_MEDIA_BASE_PSSH_GENERATOR_H_ 12 #include "packager/base/optional.h" 13 #include "packager/media/base/protection_system_specific_info.h" 14 #include "packager/status.h" 36 const std::vector<std::vector<uint8_t>>& key_ids,
45 const std::vector<uint8_t>& key,
52 virtual base::Optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIds(
53 const std::vector<std::vector<uint8_t>>& key_ids)
const = 0;
59 virtual base::Optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIdAndKey(
60 const std::vector<uint8_t>& key_id,
61 const std::vector<uint8_t>& key)
const = 0;
64 virtual uint8_t PsshBoxVersion()
const = 0;
67 virtual const std::vector<uint8_t>& SystemId()
const = 0;
73 #endif // PACKAGER_MEDIA_BASE_PSSH_GENERATOR_H_
All the methods that are virtual are virtual for mocking.