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"
24 PsshGenerator(
const std::vector<uint8_t>& system_id, uint8_t box_version);
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;
63 std::vector<uint8_t> system_id_;
64 uint8_t box_version_ = 0;
All the methods that are virtual are virtual for mocking.