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

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

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CrOS compile error 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/cdm_wrapper.h ('k') | media/cdm/ppapi/supported_cdm_versions.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 9cc348dc8644237fdd1d572ac11a5b4cb6f99c3f..8a7e50e096d359f17be99198b27216ecaf38caf2 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -157,10 +157,13 @@ static cdm::Error ConvertException(media::MediaKeys::Exception exception_code) {
static media::MediaKeys::SessionType ConvertSessionType(
cdm::SessionType session_type) {
switch (session_type) {
- case cdm::kPersistent:
- return media::MediaKeys::PERSISTENT_SESSION;
case cdm::kTemporary:
return media::MediaKeys::TEMPORARY_SESSION;
+ case cdm::kPersistentLicense:
+ return media::MediaKeys::PERSISTENT_SESSION;
+ case cdm::kPersistentKeyRelease:
+ // TODO(jrummell): Return matching type when MediaKeys changes.
+ return media::MediaKeys::PERSISTENT_SESSION;
}
NOTIMPLEMENTED();
return media::MediaKeys::TEMPORARY_SESSION;
« no previous file with comments | « media/cdm/ppapi/cdm_wrapper.h ('k') | media/cdm/ppapi/supported_cdm_versions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698