Index: ppapi/api/private/ppb_content_decryptor_private.idl |
diff --git a/ppapi/api/private/ppb_content_decryptor_private.idl b/ppapi/api/private/ppb_content_decryptor_private.idl |
index ad59210e59a8744b42f681c4ea4d22e3eafc0d06..49cc0b37042dd379378c3a8207546a185e2212f5 100644 |
--- a/ppapi/api/private/ppb_content_decryptor_private.idl |
+++ b/ppapi/api/private/ppb_content_decryptor_private.idl |
@@ -12,7 +12,7 @@ |
[generate_thunk] |
label Chrome { |
- M36 = 0.12 |
+ M41 = 0.13 |
}; |
/** |
@@ -45,19 +45,6 @@ interface PPB_ContentDecryptor_Private { |
[in] uint32_t promise_id, |
[in] PP_Var web_session_id); |
- /** |
- * A promise that returns a set of key IDs has been resolved by the CDM. |
- * |
- * @param[in] promise_id Identifies the promise that the CDM resolved. |
- * |
- * @param[in] key_ids A <code>PP_Var</code> of type |
- * <code>PP_VARTYPE_ARRAY</code> containing elements of type |
- * <code>PP_VARTYPE_ARRAYBUFFER</code> that are the session's usable key IDs. |
- */ |
- void PromiseResolvedWithKeyIds( |
- [in] PP_Instance instance, |
- [in] uint32_t promise_id, |
- [in] PP_Var key_ids_array); |
/** |
* A promise has been rejected by the CDM due to an error. |
@@ -97,18 +84,17 @@ interface PPB_ContentDecryptor_Private { |
* <code>PP_VARTYPE_STRING</code> containing the ID of a session for |
* which this message is intended. |
* |
+ * @param[in] message_type A <code>PP_CdmMessageType</code> containing the |
+ * message type. |
+ * |
* @param[in] message A <code>PP_Var</code> of type |
* <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the message. |
- * |
- * @param[in] destination_url A <code>PP_Var</code> of type |
- * <code>PP_VARTYPE_STRING</code> containing the destination URL for the |
- * message. |
*/ |
void SessionMessage( |
[in] PP_Instance instance, |
[in] PP_Var web_session_id, |
- [in] PP_Var message, |
- [in] PP_Var destination_url); |
+ [in] PP_CdmMessageType message_type, |
+ [in] PP_Var message); |
/** |
* The keys for a session have changed. |
@@ -119,11 +105,19 @@ interface PPB_ContentDecryptor_Private { |
* |
* @param[in] has_additional_usable_key A <code>PP_Bool</code> indicating if |
* a new usable key has been added. |
+ * |
+ * @param[in] key_count The number of arguments contained in |
+ * <code>key_information</code> |
+ * |
+ * @param[in] key_information An array of type <code>PP_KeyInformation</code> |
+ * that are the session's key IDs and their status. |
*/ |
void SessionKeysChange( |
[in] PP_Instance instance, |
[in] PP_Var web_session_id, |
- [in] PP_Bool has_additional_usable_key); |
+ [in] PP_Bool has_additional_usable_key, |
+ [in] uint32_t key_count, |
+ [in, size_as=key_count] PP_KeyInformation[] key_information); |
/** |
* The expiration time for a session has changed. |
@@ -142,26 +136,6 @@ interface PPB_ContentDecryptor_Private { |
[in] PP_Time new_expiry_time); |
/** |
- * The session is now ready to decrypt the media stream. |
- * |
- * Note: The above describes the most simple case. Depending on the key |
- * system, a series of <code>SessionMessage()</code> calls from the CDM will |
- * be sent to the browser, and then on to the web application. The web |
- * application must then provide more data to the CDM by directing the browser |
- * to pass the data to the CDM via calls to <code>UpdateSession()</code> on |
- * the <code>PPP_ContentDecryptor_Private</code> interface. |
- * The CDM must call <code>SessionReady()</code> when the sequence is |
- * completed, and, in response, the browser must notify the web application. |
- * |
- * @param[in] web_session_id A <code>PP_Var</code> of type |
- * <code>PP_VARTYPE_STRING</code> containing the session's ID attribute of |
- * the session that is now ready. |
- */ |
- void SessionReady( |
- [in] PP_Instance instance, |
- [in] PP_Var web_session_id); |
- |
- /** |
* The session has been closed as the result of a call to the |
* <code>ReleaseSession()</code> method on the |
* <code>PPP_ContentDecryptor_Private</code> interface, or due to other |