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

Unified Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 923283002: Implement checks for distinctiveIdentifier and persistentState in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/renderer/media/chrome_key_systems.cc
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
index db388eacf9e9486919a00ec3dba99be53e3cd5ac..f47294667209278d6120f8cfbe7c43d56b36740e 100644
--- a/chrome/renderer/media/chrome_key_systems.cc
+++ b/chrome/renderer/media/chrome_key_systems.cc
@@ -81,6 +81,12 @@ static void AddExternalClearKey(
info.supported_init_data_types |= media::EME_INIT_DATA_TYPE_CENC;
#endif // defined(USE_PROPRIETARY_CODECS)
+ // Persistent sessions are faked.
+ info.persistent_state_requirement = media::EME_REQUIREMENT_OPTIONAL;
+ info.distinctive_identifier_requirement = media::EME_REQUIREMENT_NOT_ALLOWED;
+ info.supported_session_types = media::EME_SESSION_TYPE_TEMPORARY |
+ media::EME_SESSION_TYPE_PERSISTENT_LICENSE;
+
info.pepper_type = kExternalClearKeyPepperType;
concrete_key_systems->push_back(info);
« no previous file with comments | « no previous file | components/cdm/renderer/android_key_systems.cc » ('j') | components/cdm/renderer/android_key_systems.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698