| 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 * This file defines the <code>PPP_ContentDecryptor_Dev</code> | 7 * This file defines the <code>PPP_ContentDecryptor_Dev</code> |
| 8 * interface. | 8 * interface. |
| 9 */ | 9 */ |
| 10 label Chrome { | 10 label Chrome { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 PP_Bool CancelKeyRequest( | 42 PP_Bool CancelKeyRequest( |
| 43 [in] PP_Instance instance, | 43 [in] PP_Instance instance, |
| 44 [in] PP_Var session_id); /* String. */ | 44 [in] PP_Var session_id); /* String. */ |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * Decrypts the block and returns the unencrypted block. In the case of | 47 * Decrypts the block and returns the unencrypted block. In the case of |
| 48 * media, the block contains encoded data. | 48 * media, the block contains encoded data. |
| 49 */ | 49 */ |
| 50 PP_Bool Decrypt( | 50 PP_Bool Decrypt( |
| 51 [in] PP_Instance instance, | 51 [in] PP_Instance instance, |
| 52 [in] PP_Resource encrypted_block, /* PPB_Buffer. */ | 52 [in] PP_DecryptionBuffer_Dev encrypted_buffer); |
| 53 [in] PP_CompletionCallback callback); | |
| 54 | 53 |
| 55 /** | 54 /** |
| 56 * Decrypts the block then decodes it and returns the unencrypted raw | 55 * Decrypts the block then decodes it and returns the unencrypted raw |
| 57 * (decoded) frame. | 56 * (decoded) frame. |
| 58 */ | 57 */ |
| 59 PP_Bool DecryptAndDecode( | 58 PP_Bool DecryptAndDecode( |
| 60 [in] PP_Instance instance, | 59 [in] PP_Instance instance, |
| 61 [in] PP_Resource encrypted_block, /* PPB_Buffer. */ | 60 [in] PP_Resource encrypted_block, /* PPB_Buffer. */ |
| 62 [in] PP_CompletionCallback callback); | 61 [in] PP_CompletionCallback callback); |
| 63 }; | 62 }; |
| OLD | NEW |