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

Side by Side Diff: ppapi/api/private/pp_content_decryptor.idl

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 /** 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, 399 PP_DECRYPTORSTREAMTYPE_AUDIO = 0,
400 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 400 PP_DECRYPTORSTREAMTYPE_VIDEO = 1
401 }; 401 };
402 402
403 /** 403 /**
404 * <code>PP_SessionType</code> contains session type constants. 404 * <code>PP_SessionType</code> contains session type constants.
405 */ 405 */
406 [assert_size(4)] 406 [assert_size(4)]
407 enum PP_SessionType { 407 enum PP_SessionType {
408 PP_SESSIONTYPE_TEMPORARY = 0, 408 PP_SESSIONTYPE_TEMPORARY = 0,
409 PP_SESSIONTYPE_PERSISTENT = 1 409 PP_SESSIONTYPE_PERSISTENT_LICENSE = 1,
410 PP_SESSIONTYPE_PERSISTENT_RELEASE = 2
410 }; 411 };
411 412
412 /** 413 /**
413 * <code>PP_CdmExceptionCode</code> contains exception code constants. 414 * <code>PP_CdmExceptionCode</code> contains exception code constants.
414 */ 415 */
415 [assert_size(4)] 416 [assert_size(4)]
416 enum PP_CdmExceptionCode { 417 enum PP_CdmExceptionCode {
417 PP_CDMEXCEPTIONCODE_NOTSUPPORTEDERROR = 1, 418 PP_CDMEXCEPTIONCODE_NOTSUPPORTEDERROR = 1,
418 PP_CDMEXCEPTIONCODE_INVALIDSTATEERROR = 2, 419 PP_CDMEXCEPTIONCODE_INVALIDSTATEERROR = 2,
419 PP_CDMEXCEPTIONCODE_INVALIDACCESSERROR = 3, 420 PP_CDMEXCEPTIONCODE_INVALIDACCESSERROR = 3,
420 PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4, 421 PP_CDMEXCEPTIONCODE_QUOTAEXCEEDEDERROR = 4,
421 PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5, 422 PP_CDMEXCEPTIONCODE_UNKNOWNERROR = 5,
422 PP_CDMEXCEPTIONCODE_CLIENTERROR = 6, 423 PP_CDMEXCEPTIONCODE_CLIENTERROR = 6,
423 PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7 424 PP_CDMEXCEPTIONCODE_OUTPUTERROR = 7
424 }; 425 };
426
427 /**
428 * <code>PP_MessageType</code> contains message type constants.
429 */
430 [assert_size(4)]
431 enum PP_MessageType {
432 PP_MESSAGETYPE_LICENSE_REQUEST = 0,
433 PP_MESSAGETYPE_LICENSE_RENEWAL = 1,
434 PP_MESSAGETYPE_LICENSE_RELEASE = 2
435 };
436
437 /**
438 * <code>PP_KeyStatus</code> contains key status constants.
439 */
440 [assert_size(4)]
441 enum PP_KeyStatus {
442 PP_KEYSTATUS_USABLE = 0,
443 PP_KEYSTATUS_INVALID = 1,
444 PP_KEYSTATUS_EXPIRED = 2,
445 PP_KEYSTATUS_OUTPUTNOTALLOWED = 3
446 };
447
448 /**
449 * The <code>PP_KeyInformation</code> struct contains information about a
450 * key used for decryption.
451 */
452 [assert_size(524)]
453 struct PP_KeyInformation {
454 /**
455 * Key ID.
456 */
457 uint8_t[512] key_id;
458 uint32_t key_id_size;
459
460 /**
461 * Status of this key.
462 */
463 PP_KeyStatus key_status;
464
465 /**
466 * Optional error code for keys that are not usable.
467 */
468 uint32_t system_code;
469 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698