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

Unified Diff: media/base/decryptor.h

Issue 416333011: Allow setContentDecryptionModule() to get called when setting is done. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + android tweaks Created 6 years, 4 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 | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decryptor.h
diff --git a/media/base/decryptor.h b/media/base/decryptor.h
index 2c2cf793639f05559b83e73e2cc8dece6780a770..292f2b34694a0dafb22cda6bc0e27667fccc3e99 100644
--- a/media/base/decryptor.h
+++ b/media/base/decryptor.h
@@ -161,8 +161,14 @@ class MEDIA_EXPORT Decryptor {
DISALLOW_COPY_AND_ASSIGN(Decryptor);
};
-// Callback to notify that a decryptor is ready.
-typedef base::Callback<void(Decryptor*)> DecryptorReadyCB;
+// Callback to notify that the decryptor has been completely attached into the
+// pipeline. Parameter indicates whether the operation succeeded.
+typedef base::Callback<void(bool)> DecryptorAttachedCB;
+
+// Callback to notify that a decryptor is ready. DecryptorAttachedCB is called
+// when the decryptor has been completely inserted into the pipeline.
+typedef base::Callback<void(Decryptor*, const DecryptorAttachedCB&)>
+ DecryptorReadyCB;
// Callback to set/cancel a DecryptorReadyCB.
// Calling this callback with a non-null callback registers decryptor ready
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698