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

Unified Diff: media/blink/webcontentdecryptionmodule_impl.h

Issue 2402563002: Keep reference to CDM to avoid it's premature destruction (Closed)
Patch Set: 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/webcontentdecryptionmodule_impl.cc » ('j') | media/blink/webmediaplayer_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webcontentdecryptionmodule_impl.h
diff --git a/media/blink/webcontentdecryptionmodule_impl.h b/media/blink/webcontentdecryptionmodule_impl.h
index 989b4a08cbeee174e81460227a4a5a09f731b6fc..306f61adf23072ffa83565fe3d9dc05e4a0d7143 100644
--- a/media/blink/webcontentdecryptionmodule_impl.h
+++ b/media/blink/webcontentdecryptionmodule_impl.h
@@ -53,10 +53,13 @@ class MEDIA_BLINK_EXPORT WebContentDecryptionModuleImpl
blink::WebContentDecryptionModuleResult result) override;
// Returns the CdmContext associated with this CDM, which must not be nullptr.
- // TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor
- // after WebContentDecryptionModule is freed. http://crbug.com/330324
+ // Caller should keep a reference using GetCdmAdapterReference() to keep the
+ // CDM alive if necessary.
CdmContext* GetCdmContext();
+ // Returns a reference to this CDM adapter.
+ CdmSessionAdapter* GetCdmAdapterReference();
xhwang 2016/10/07 05:02:14 This returns a raw pointer, not a reference... Ah,
jrummell 2016/10/07 20:15:30 Done.
+
private:
friend CdmSessionAdapter;
« no previous file with comments | « no previous file | media/blink/webcontentdecryptionmodule_impl.cc » ('j') | media/blink/webmediaplayer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698