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

Unified Diff: media/blink/cdm_session_adapter.cc

Issue 833963003: Pass key_information on SessionKeysChange message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN changes Created 5 years, 12 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/blink/cdm_session_adapter.cc
diff --git a/media/blink/cdm_session_adapter.cc b/media/blink/cdm_session_adapter.cc
index 7897084313bf885b505a2e23cdabf2a012e40829..7f975596e58277e6fcb7e9c716de240efefc989c 100644
--- a/media/blink/cdm_session_adapter.cc
+++ b/media/blink/cdm_session_adapter.cc
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "base/stl_util.h"
#include "media/base/cdm_factory.h"
+#include "media/base/cdm_key_information.h"
#include "media/base/cdm_promise.h"
#include "media/base/key_systems.h"
#include "media/base/media_keys.h"
@@ -128,8 +129,11 @@ void CdmSessionAdapter::OnSessionMessage(const std::string& web_session_id,
session->OnSessionMessage(message, destination_url);
}
-void CdmSessionAdapter::OnSessionKeysChange(const std::string& web_session_id,
- bool has_additional_usable_key) {
+void CdmSessionAdapter::OnSessionKeysChange(
+ const std::string& web_session_id,
+ bool has_additional_usable_key,
+ const CdmKeyInformationVector& key_information) {
+ // TODO(jrummell): Pass |key_information| on.
WebContentDecryptionModuleSessionImpl* session = GetSession(web_session_id);
DLOG_IF(WARNING, !session) << __FUNCTION__ << " for unknown session "
<< web_session_id;

Powered by Google App Engine
This is Rietveld 408576698