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

Unified Diff: media/base/cdm_context.h

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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/audio_renderer.h ('k') | media/base/decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/cdm_context.h
diff --git a/media/base/cdm_context.h b/media/base/cdm_context.h
index 7d897608cc39946e513334ca6a0a55cc1ee19e5a..c64f276efd00720a8f77da537f64aa5036b67dd7 100644
--- a/media/base/cdm_context.h
+++ b/media/base/cdm_context.h
@@ -68,6 +68,19 @@ typedef base::Callback<void(bool)> CdmAttachedCB;
// A dummy implementation of CdmAttachedCB.
MEDIA_EXPORT void IgnoreCdmAttached(bool success);
+// Callback to notify that a CDM is ready. CdmAttachedCB is called when the CDM
+// has been completely attached to the media pipeline.
+typedef base::Callback<void(CdmContext*, const CdmAttachedCB&)> CdmReadyCB;
+
+// Callback to set/cancel a CdmReadyCB.
+// Calling this callback with a non-null callback registers CDM ready
+// notification. When the CDM is ready, notification will be sent
+// through the provided callback.
+// Calling this callback with a null callback cancels previously registered CDM
+// ready notification. Any previously provided callback will be fired
+// immediately with NULL.
+typedef base::Callback<void(const CdmReadyCB&)> SetCdmReadyCB;
+
} // namespace media
#endif // MEDIA_BASE_CDM_CONTEXT_H_
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698