Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Unified Diff: media/cdm/json_web_key.h

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cdm/default_cdm_factory.cc ('k') | media/cdm/json_web_key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/json_web_key.h
diff --git a/media/cdm/json_web_key.h b/media/cdm/json_web_key.h
index ecf1d03770d0ad9e9a5d1fec06b2b56ee6d3c69c..be48828c77992d23e3f2148e9b1d0cc4c0521560 100644
--- a/media/cdm/json_web_key.h
+++ b/media/cdm/json_web_key.h
@@ -11,8 +11,8 @@
#include <utility>
#include <vector>
+#include "media/base/content_decryption_module.h"
#include "media/base/media_export.h"
-#include "media/base/media_keys.h"
namespace media {
@@ -64,15 +64,17 @@ MEDIA_EXPORT std::string GenerateJWKSet(const uint8_t* key,
int key_id_length);
// Converts a set of |key|, |key_id| pairs to a JSON Web Key Set.
-MEDIA_EXPORT std::string GenerateJWKSet(const KeyIdAndKeyPairs& keys,
- MediaKeys::SessionType session_type);
+MEDIA_EXPORT std::string GenerateJWKSet(
+ const KeyIdAndKeyPairs& keys,
+ ContentDecryptionModule::SessionType session_type);
// Extracts the JSON Web Keys from a JSON Web Key Set. If |input| looks like
// a valid JWK Set, then true is returned and |keys| and |session_type| are
// updated to contain the values found. Otherwise return false.
-MEDIA_EXPORT bool ExtractKeysFromJWKSet(const std::string& jwk_set,
- KeyIdAndKeyPairs* keys,
- MediaKeys::SessionType* session_type);
+MEDIA_EXPORT bool ExtractKeysFromJWKSet(
+ const std::string& jwk_set,
+ KeyIdAndKeyPairs* keys,
+ ContentDecryptionModule::SessionType* session_type);
// Extracts the Key Ids from a Key IDs Initialization Data
// (https://w3c.github.io/encrypted-media/keyids-format.html). If |input| looks
@@ -84,9 +86,10 @@ MEDIA_EXPORT bool ExtractKeyIdsFromKeyIdsInitData(const std::string& input,
// Creates a license request message for the |key_ids| and |session_type|
// specified. |license| is updated to contain the resulting JSON string.
-MEDIA_EXPORT void CreateLicenseRequest(const KeyIdList& key_ids,
- MediaKeys::SessionType session_type,
- std::vector<uint8_t>* license);
+MEDIA_EXPORT void CreateLicenseRequest(
+ const KeyIdList& key_ids,
+ ContentDecryptionModule::SessionType session_type,
+ std::vector<uint8_t>* license);
// Creates a keyIDs init_data message for the |key_ids| specified.
// |key_ids_init_data| is updated to contain the resulting JSON string.
« no previous file with comments | « media/cdm/default_cdm_factory.cc ('k') | media/cdm/json_web_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698