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

Unified Diff: ppapi/c/private/pp_content_decryptor.h

Issue 2514123004: Fix range checking for PP_CdmKeyStatus (Closed)
Patch Set: more _MAX values Created 4 years, 1 month 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 | « ppapi/api/private/pp_content_decryptor.idl ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/pp_content_decryptor.h
diff --git a/ppapi/c/private/pp_content_decryptor.h b/ppapi/c/private/pp_content_decryptor.h
index 5f02efb969adae571c6aee222b9a3aeef6f090db..126456048b0faf3f2e9500d62ad630c25b97293b 100644
--- a/ppapi/c/private/pp_content_decryptor.h
+++ b/ppapi/c/private/pp_content_decryptor.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/pp_content_decryptor.idl modified Tue Oct 20 12:50:15 2015. */
+/* From private/pp_content_decryptor.idl modified Mon Nov 21 11:44:43 2016. */
#ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
#define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
@@ -451,7 +451,8 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig, 24);
*/
typedef enum {
PP_DECRYPTORSTREAMTYPE_AUDIO = 0,
- PP_DECRYPTORSTREAMTYPE_VIDEO = 1
+ PP_DECRYPTORSTREAMTYPE_VIDEO = 1,
+ PP_DECRYPTORSTREAMTYPE_MAX = PP_DECRYPTORSTREAMTYPE_VIDEO
} PP_DecryptorStreamType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptorStreamType, 4);
@@ -461,7 +462,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptorStreamType, 4);
typedef enum {
PP_SESSIONTYPE_TEMPORARY = 0,
PP_SESSIONTYPE_PERSISTENT_LICENSE = 1,
- PP_SESSIONTYPE_PERSISTENT_RELEASE = 2
+ PP_SESSIONTYPE_PERSISTENT_RELEASE = 2,
+ PP_SESSIONTYPE_MAX = PP_SESSIONTYPE_PERSISTENT_RELEASE
} PP_SessionType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_SessionType, 4);
@@ -471,7 +473,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_SessionType, 4);
typedef enum {
PP_INITDATATYPE_CENC = 0,
PP_INITDATATYPE_KEYIDS = 1,
- PP_INITDATATYPE_WEBM = 2
+ PP_INITDATATYPE_WEBM = 2,
+ PP_INITDATATYPE_MAX = PP_INITDATATYPE_WEBM
} PP_InitDataType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InitDataType, 4);
@@ -485,7 +488,8 @@ typedef enum {
PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4,
PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5,
PP_CDMEXCEPTIONCODE_CLIENTERROR = 6,
- PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7
+ PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7,
+ PP_CDMEXCEPTIONCODE_MAX = PP_CDMEXCEPTIONCODE_OUTPUTERROR
} PP_CdmExceptionCode;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmExceptionCode, 4);
@@ -495,7 +499,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmExceptionCode, 4);
typedef enum {
PP_CDMMESSAGETYPE_LICENSE_REQUEST = 0,
PP_CDMMESSAGETYPE_LICENSE_RENEWAL = 1,
- PP_CDMMESSAGETYPE_LICENSE_RELEASE = 2
+ PP_CDMMESSAGETYPE_LICENSE_RELEASE = 2,
+ PP_CDMMESSAGETYPE_MAX = PP_CDMMESSAGETYPE_LICENSE_RELEASE
} PP_CdmMessageType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmMessageType, 4);
@@ -509,7 +514,8 @@ typedef enum {
PP_CDMKEYSTATUS_OUTPUTRESTRICTED = 3,
PP_CDMKEYSTATUS_OUTPUTDOWNSCALED = 4,
PP_CDMKEYSTATUS_STATUSPENDING = 5,
- PP_CDMKEYSTATUS_RELEASED = 6
+ PP_CDMKEYSTATUS_RELEASED = 6,
+ PP_CDMKEYSTATUS_MAX = PP_CDMKEYSTATUS_RELEASED
} PP_CdmKeyStatus;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmKeyStatus, 4);
/**
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698