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

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: ScopedVector 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
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..4c986a90ce5e5c718726dbda7fb959e4afa20d40 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,
+ const 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);

Powered by Google App Engine
This is Rietveld 408576698