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

Unified Diff: ppapi/api/private/pp_content_decryptor.idl

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: ppapi/api/private/pp_content_decryptor.idl
diff --git a/ppapi/api/private/pp_content_decryptor.idl b/ppapi/api/private/pp_content_decryptor.idl
index 4493c3eab7aeed2dfdec80e3ed1014ab0a69b7d4..f6f87f6c718d7f9af36c866e854411ff58ad98db 100644
--- a/ppapi/api/private/pp_content_decryptor.idl
+++ b/ppapi/api/private/pp_content_decryptor.idl
@@ -406,7 +406,8 @@ enum PP_DecryptorStreamType {
[assert_size(4)]
enum PP_SessionType {
PP_SESSIONTYPE_TEMPORARY = 0,
- PP_SESSIONTYPE_PERSISTENT = 1
+ PP_SESSIONTYPE_PERSISTENT_LICENSE = 1,
+ PP_SESSIONTYPE_PERSISTENT_RELEASE = 2
};
/**
@@ -422,3 +423,47 @@ enum PP_CdmExceptionCode {
PP_CDMEXCEPTIONCODE_CLIENTERROR = 6,
PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7
};
+
+/**
+ * <code>PP_MessageType</code> contains message type constants.
+ */
+[assert_size(4)]
+enum PP_MessageType {
+ PP_MESSAGETYPE_LICENSE_REQUEST = 0,
+ PP_MESSAGETYPE_LICENSE_RENEWAL = 1,
+ PP_MESSAGETYPE_LICENSE_RELEASE = 2
+};
+
+/**
+ * <code>PP_KeyStatus</code> contains key status constants.
+ */
+[assert_size(4)]
+enum PP_KeyStatus {
+ PP_KEYSTATUS_USABLE = 0,
+ PP_KEYSTATUS_INVALID = 1,
+ PP_KEYSTATUS_EXPIRED = 2,
+ PP_KEYSTATUS_OUTPUTNOTALLOWED = 3
+};
+
+/**
+ * The <code>PP_KeyInformation</code> struct contains information about a
+ * key used for decryption.
+ */
+[assert_size(524)]
+struct PP_KeyInformation {
+ /**
+ * Key ID.
+ */
+ uint8_t[512] key_id;
+ uint32_t key_id_size;
+
+ /**
+ * Status of this key.
+ */
+ PP_KeyStatus key_status;
+
+ /**
+ * Optional error code for keys that are not usable.
+ */
+ uint32_t system_code;
+};

Powered by Google App Engine
This is Rietveld 408576698