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

Unified Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 833963003: Pass key_information on SessionKeysChange message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes Created 5 years, 11 months 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
« no previous file with comments | « media/cdm/ppapi/external_clear_key/clear_key_cdm.h ('k') | media/cdm/proxy_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
index ecb757e9286e59bc1d92e92d4e8e5a70e04745cf..9e83b2d157cae61639ac485035c5490583a762f0 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -15,6 +15,7 @@
#include "base/logging.h"
#include "base/time/time.h"
#include "media/base/cdm_callback_promise.h"
+#include "media/base/cdm_key_information.h"
#include "media/base/decoder_buffer.h"
#include "media/base/decrypt_config.h"
#include "media/cdm/json_web_key.h"
@@ -690,11 +691,13 @@ void ClearKeyCdm::OnSessionMessage(const std::string& web_session_id,
}
void ClearKeyCdm::OnSessionKeysChange(const std::string& web_session_id,
- bool has_additional_usable_key) {
+ bool has_additional_usable_key,
+ CdmKeysInfo keys_info) {
// Ignore the message when we are waiting to update the loadable session.
if (web_session_id == session_id_for_emulated_loadsession_)
return;
+ // TODO(jrummell): Pass |keys_info| on.
host_->OnSessionUsableKeysChange(web_session_id.data(),
web_session_id.length(),
has_additional_usable_key);
« no previous file with comments | « media/cdm/ppapi/external_clear_key/clear_key_cdm.h ('k') | media/cdm/proxy_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698