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

Side by Side Diff: ppapi/c/private/pp_content_decryptor.h

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cdm_7 changes 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 unified diff | Download patch
OLDNEW
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 Tue Dec 16 14:34:48 2014. */
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
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_MessageType</code> contains message type constants.
479 */
480 typedef enum {
481 PP_MESSAGETYPE_LICENSE_REQUEST = 0,
482 PP_MESSAGETYPE_LICENSE_RENEWAL = 1,
483 PP_MESSAGETYPE_LICENSE_RELEASE = 2
484 } PP_MessageType;
dmichael (off chromium) 2014/12/19 18:50:04 Could you do a slightly more specific name, like P
jrummell 2014/12/20 00:23:08 Done.
485 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MessageType, 4);
486
487 /**
488 * <code>PP_KeyStatus</code> contains key status constants.
489 */
490 typedef enum {
491 PP_KEYSTATUS_USABLE = 0,
492 PP_KEYSTATUS_INVALID = 1,
493 PP_KEYSTATUS_EXPIRED = 2,
494 PP_KEYSTATUS_OUTPUTNOTALLOWED = 3
495 } PP_KeyStatus;
dmichael (off chromium) 2014/12/19 18:50:04 ditto
jrummell 2014/12/20 00:23:08 Done.
496 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_KeyStatus, 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_KeyStatus 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698