OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* From private/pp_content_decryptor.idl modified Thu Jun 5 13:39:15 2014. */ | 6 /* From private/pp_content_decryptor.idl modified Wed Jan 7 18:40:14 2015. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ | 8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ |
9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ | 9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 | 13 |
14 /** | 14 /** |
15 * @file | 15 * @file |
16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information | 16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, | 448 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, |
449 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 | 449 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 |
450 } PP_DecryptorStreamType; | 450 } PP_DecryptorStreamType; |
451 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptorStreamType, 4); | 451 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptorStreamType, 4); |
452 | 452 |
453 /** | 453 /** |
454 * <code>PP_SessionType</code> contains session type constants. | 454 * <code>PP_SessionType</code> contains session type constants. |
455 */ | 455 */ |
456 typedef enum { | 456 typedef enum { |
457 PP_SESSIONTYPE_TEMPORARY = 0, | 457 PP_SESSIONTYPE_TEMPORARY = 0, |
458 PP_SESSIONTYPE_PERSISTENT = 1 | 458 PP_SESSIONTYPE_PERSISTENT_LICENSE = 1, |
| 459 PP_SESSIONTYPE_PERSISTENT_RELEASE = 2 |
459 } PP_SessionType; | 460 } PP_SessionType; |
460 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_SessionType, 4); | 461 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_SessionType, 4); |
461 | 462 |
462 /** | 463 /** |
463 * <code>PP_CdmExceptionCode</code> contains exception code constants. | 464 * <code>PP_CdmExceptionCode</code> contains exception code constants. |
464 */ | 465 */ |
465 typedef enum { | 466 typedef enum { |
466 PP_CDMEXCEPTIONCODE_NOTSUPPORTEDERROR = 1, | 467 PP_CDMEXCEPTIONCODE_NOTSUPPORTEDERROR = 1, |
467 PP_CDMEXCEPTIONCODE_INVALIDSTATEERROR = 2, | 468 PP_CDMEXCEPTIONCODE_INVALIDSTATEERROR = 2, |
468 PP_CDMEXCEPTIONCODE_INVALIDACCESSERROR = 3, | 469 PP_CDMEXCEPTIONCODE_INVALIDACCESSERROR = 3, |
469 PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4, | 470 PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4, |
470 PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5, | 471 PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5, |
471 PP_CDMEXCEPTIONCODE_CLIENTERROR = 6, | 472 PP_CDMEXCEPTIONCODE_CLIENTERROR = 6, |
472 PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7 | 473 PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7 |
473 } PP_CdmExceptionCode; | 474 } PP_CdmExceptionCode; |
474 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmExceptionCode, 4); | 475 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmExceptionCode, 4); |
| 476 |
| 477 /** |
| 478 * <code>PP_CdmMessageType</code> contains message type constants. |
| 479 */ |
| 480 typedef enum { |
| 481 PP_CDMMESSAGETYPE_LICENSE_REQUEST = 0, |
| 482 PP_CDMMESSAGETYPE_LICENSE_RENEWAL = 1, |
| 483 PP_CDMMESSAGETYPE_LICENSE_RELEASE = 2 |
| 484 } PP_CdmMessageType; |
| 485 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmMessageType, 4); |
| 486 |
| 487 /** |
| 488 * <code>PP_CdmKeyStatus</code> contains key status constants. |
| 489 */ |
| 490 typedef enum { |
| 491 PP_CDMKEYSTATUS_USABLE = 0, |
| 492 PP_CDMKEYSTATUS_INVALID = 1, |
| 493 PP_CDMKEYSTATUS_EXPIRED = 2, |
| 494 PP_CDMKEYSTATUS_OUTPUTNOTALLOWED = 3 |
| 495 } PP_CdmKeyStatus; |
| 496 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CdmKeyStatus, 4); |
475 /** | 497 /** |
476 * @} | 498 * @} |
477 */ | 499 */ |
| 500 |
| 501 /** |
| 502 * @addtogroup Structs |
| 503 * @{ |
| 504 */ |
| 505 /** |
| 506 * The <code>PP_KeyInformation</code> struct contains information about a |
| 507 * key used for decryption. |
| 508 */ |
| 509 struct PP_KeyInformation { |
| 510 /** |
| 511 * Key ID. |
| 512 */ |
| 513 uint8_t key_id[512]; |
| 514 uint32_t key_id_size; |
| 515 /** |
| 516 * Status of this key. |
| 517 */ |
| 518 PP_CdmKeyStatus key_status; |
| 519 /** |
| 520 * Optional error code for keys that are not usable. |
| 521 */ |
| 522 uint32_t system_code; |
| 523 }; |
| 524 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_KeyInformation, 524); |
| 525 /** |
| 526 * @} |
| 527 */ |
478 | 528 |
479 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ | 529 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ |
480 | 530 |
OLD | NEW |