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

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

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 | « no previous file | ppapi/c/private/pp_content_decryptor.h » ('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 da62b14c272288a0aaf303bf614b10ce22b1f73c..9ac7e2f64864998e22796e7d871b552485b9bbad 100644
--- a/ppapi/api/private/pp_content_decryptor.idl
+++ b/ppapi/api/private/pp_content_decryptor.idl
@@ -402,7 +402,8 @@ struct PP_VideoDecoderConfig {
[assert_size(4)]
enum PP_DecryptorStreamType {
PP_DECRYPTORSTREAMTYPE_AUDIO = 0,
- PP_DECRYPTORSTREAMTYPE_VIDEO = 1
+ PP_DECRYPTORSTREAMTYPE_VIDEO = 1,
+ PP_DECRYPTORSTREAMTYPE_MAX = PP_DECRYPTORSTREAMTYPE_VIDEO
};
/**
@@ -412,7 +413,8 @@ enum PP_DecryptorStreamType {
enum PP_SessionType {
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
};
/**
@@ -422,7 +424,8 @@ enum PP_SessionType {
enum PP_InitDataType {
PP_INITDATATYPE_CENC = 0,
PP_INITDATATYPE_KEYIDS = 1,
- PP_INITDATATYPE_WEBM = 2
+ PP_INITDATATYPE_WEBM = 2,
+ PP_INITDATATYPE_MAX = PP_INITDATATYPE_WEBM
};
/**
@@ -436,7 +439,8 @@ enum PP_CdmExceptionCode {
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
};
/**
@@ -446,7 +450,8 @@ enum PP_CdmExceptionCode {
enum PP_CdmMessageType {
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
};
/**
@@ -460,7 +465,8 @@ enum PP_CdmKeyStatus {
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
};
/**
« no previous file with comments | « no previous file | ppapi/c/private/pp_content_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698