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

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: CrOS compile error Created 5 years, 11 months 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/ppapi/supported_cdm_versions.h ('k') | ppapi/api/private/ppb_content_decryptor_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ee7a6317ae2e6152b14724eedc567632055d6be2 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_CdmMessageType</code> contains message type constants.
+ */
+[assert_size(4)]
+enum PP_CdmMessageType {
+ PP_CDMMESSAGETYPE_LICENSE_REQUEST = 0,
+ PP_CDMMESSAGETYPE_LICENSE_RENEWAL = 1,
+ PP_CDMMESSAGETYPE_LICENSE_RELEASE = 2
+};
+
+/**
+ * <code>PP_CdmKeyStatus</code> contains key status constants.
+ */
+[assert_size(4)]
+enum PP_CdmKeyStatus {
+ PP_CDMKEYSTATUS_USABLE = 0,
+ PP_CDMKEYSTATUS_INVALID = 1,
+ PP_CDMKEYSTATUS_EXPIRED = 2,
+ PP_CDMKEYSTATUS_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_CdmKeyStatus key_status;
+
+ /**
+ * Optional error code for keys that are not usable.
+ */
+ uint32_t system_code;
+};
« no previous file with comments | « media/cdm/ppapi/supported_cdm_versions.h ('k') | ppapi/api/private/ppb_content_decryptor_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698