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

Unified Diff: media/blink/cdm_session_adapter.h

Issue 897133002: Check InitDateType is supported by key system when creating session (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: media/blink/cdm_session_adapter.h
diff --git a/media/blink/cdm_session_adapter.h b/media/blink/cdm_session_adapter.h
index d1b9b9aa67b9cc64d95ce5c7cb6eb411612df9a9..bfbdb4eec9d060b5b6de4914fa146f7802dc04f6 100644
--- a/media/blink/cdm_session_adapter.h
+++ b/media/blink/cdm_session_adapter.h
@@ -89,6 +89,9 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
// after WebContentDecryptionModule is freed. http://crbug.com/330324
CdmContext* GetCdmContext();
+ // Returns the key system name.
+ const std::string& GetKeySystem() const;
+
// Returns a prefix to use for UMAs.
const std::string& GetKeySystemUMAPrefix() const;
@@ -124,6 +127,7 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
SessionMap sessions_;
+ std::string key_system_;
std::string key_system_uma_prefix_;
// NOTE: Weak pointers must be invalidated before all other member variables.
« no previous file with comments | « no previous file | media/blink/cdm_session_adapter.cc » ('j') | media/blink/webcontentdecryptionmodulesession_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698