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

Unified Diff: media/blink/cdm_session_adapter.h

Issue 2402563002: Keep reference to CDM to avoid it's premature destruction (Closed)
Patch Set: nits Created 4 years, 2 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 | « no previous file | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/cdm_session_adapter.h
diff --git a/media/blink/cdm_session_adapter.h b/media/blink/cdm_session_adapter.h
index a17a6426b9078a259c468c469518abe0038dd9b9..ca75340d23c46b4ed465d16d7263ae5a7e691a31 100644
--- a/media/blink/cdm_session_adapter.h
+++ b/media/blink/cdm_session_adapter.h
@@ -90,10 +90,8 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
void RemoveSession(const std::string& session_id,
std::unique_ptr<SimpleCdmPromise> promise);
- // Returns the CdmContext associated with |media_keys_|.
- // TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor
- // after WebContentDecryptionModule is freed. http://crbug.com/330324
- CdmContext* GetCdmContext();
+ // Returns a reference to the CDM.
+ scoped_refptr<MediaKeys> GetCdm();
// Returns the key system name.
const std::string& GetKeySystem() const;
« no previous file with comments | « no previous file | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698