diff options
Diffstat (limited to 'media/cdm/json_web_key.h')
-rw-r--r-- | media/cdm/json_web_key.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/cdm/json_web_key.h b/media/cdm/json_web_key.h index 7be4473..c77a814 100644 --- a/media/cdm/json_web_key.h +++ b/media/cdm/json_web_key.h @@ -81,6 +81,11 @@ MEDIA_EXPORT void CreateLicenseRequest(const KeyIdList& key_ids, MediaKeys::SessionType session_type, std::vector<uint8>* license); +// Creates a keyIDs init_data message for the |key_ids| specified. +// |key_ids_init_data| is updated to contain the resulting JSON string. +MEDIA_EXPORT void CreateKeyIdsInitData(const KeyIdList& key_ids, + std::vector<uint8>* key_ids_init_data); + // Extract the first key from the license request message. Returns true if // |license| is a valid license request and contains at least one key, // otherwise false and |first_key| is not touched. |