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

Unified Diff: media/base/player_tracker.h

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month 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/base/media_keys.cc ('k') | media/blink/cdm_session_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/player_tracker.h
diff --git a/media/base/player_tracker.h b/media/base/player_tracker.h
index 0ed1b3f8001be27318bf7ea778fa09c45cbc9870..ff41c0acfec26441e5a705b45e1184ab8a555aff 100644
--- a/media/base/player_tracker.h
+++ b/media/base/player_tracker.h
@@ -19,7 +19,8 @@ class MEDIA_EXPORT PlayerTracker {
// Registers player callbacks with the CDM.
// - |new_key_cb| is fired when a new decryption key becomes available.
- // - |cdm_unset_cb| is fired when the CDM is detached from the player.
+ // - |cdm_unset_cb| is fired when the CDM is detached from the player. The
+ // player should stop using the CDM and release any ref-count to the CDM.
// Returns a registration ID which can be used to unregister a player.
virtual int RegisterPlayer(const base::Closure& new_key_cb,
const base::Closure& cdm_unset_cb) = 0;
« no previous file with comments | « media/base/media_keys.cc ('k') | media/blink/cdm_session_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698