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

Unified Diff: ppapi/api/private/ppb_content_decryptor_private.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 side-by-side diff with in-line comments
Download patch
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..a1c0aa96fb77a0f784ef8b7a7d1155b925fe4e67 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_MessageType</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_MessageType message_type,
+ [in] PP_Var message);
/**
* The keys for a session have changed.
@@ -119,11 +105,16 @@ 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_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.
ddorwin 2014/12/17 01:01:15 Update this line Specifically, not just "usable" k
jrummell 2014/12/17 19:17:19 Done.
*/
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] PP_Var key_information_array);
/**
* The expiration time for a session has changed.
@@ -142,26 +133,6 @@ interface PPB_ContentDecryptor_Private {
[in] PP_Time new_expiry_time);
/**
ddorwin 2014/12/17 01:01:15 Wasn't SessionReady used for prefixed's keyadded e
jrummell 2014/12/17 19:17:19 Neither CDM_6 nor CDM_7 generate the ready event.
- * 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

Powered by Google App Engine
This is Rietveld 408576698