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 /** | 6 /** |
7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information | 7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information |
8 * that can be used to associate the decrypted block with a decrypt request | 8 * that can be used to associate the decrypted block with a decrypt request |
9 * and/or an input block. | 9 * and/or an input block. |
10 */ | 10 */ |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 /** | 447 /** |
448 * <code>PP_CdmKeyStatus</code> contains key status constants. | 448 * <code>PP_CdmKeyStatus</code> contains key status constants. |
449 */ | 449 */ |
450 [assert_size(4)] | 450 [assert_size(4)] |
451 enum PP_CdmKeyStatus { | 451 enum PP_CdmKeyStatus { |
452 PP_CDMKEYSTATUS_USABLE = 0, | 452 PP_CDMKEYSTATUS_USABLE = 0, |
453 PP_CDMKEYSTATUS_INVALID = 1, | 453 PP_CDMKEYSTATUS_INVALID = 1, |
454 PP_CDMKEYSTATUS_EXPIRED = 2, | 454 PP_CDMKEYSTATUS_EXPIRED = 2, |
455 PP_CDMKEYSTATUS_OUTPUTRESTRICTED = 3, | 455 PP_CDMKEYSTATUS_OUTPUTRESTRICTED = 3, |
456 PP_CDMKEYSTATUS_OUTPUTDOWNSCALED = 4, | 456 PP_CDMKEYSTATUS_OUTPUTDOWNSCALED = 4, |
457 PP_CDMKEYSTATUS_STATUSPENDING = 5 | 457 PP_CDMKEYSTATUS_STATUSPENDING = 5, |
| 458 PP_CDMKEYSTATUS_RELEASED = 6 |
458 }; | 459 }; |
459 | 460 |
460 /** | 461 /** |
461 * The <code>PP_KeyInformation</code> struct contains information about a | 462 * The <code>PP_KeyInformation</code> struct contains information about a |
462 * key used for decryption. | 463 * key used for decryption. |
463 */ | 464 */ |
464 [assert_size(524)] | 465 [assert_size(524)] |
465 struct PP_KeyInformation { | 466 struct PP_KeyInformation { |
466 /** | 467 /** |
467 * Key ID. | 468 * Key ID. |
468 */ | 469 */ |
469 uint8_t[512] key_id; | 470 uint8_t[512] key_id; |
470 uint32_t key_id_size; | 471 uint32_t key_id_size; |
471 | 472 |
472 /** | 473 /** |
473 * Status of this key. | 474 * Status of this key. |
474 */ | 475 */ |
475 PP_CdmKeyStatus key_status; | 476 PP_CdmKeyStatus key_status; |
476 | 477 |
477 /** | 478 /** |
478 * Optional error code for keys that are not usable. | 479 * Optional error code for keys that are not usable. |
479 */ | 480 */ |
480 uint32_t system_code; | 481 uint32_t system_code; |
481 }; | 482 }; |
OLD | NEW |