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

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: enhance tests Created 6 years, 5 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
Index: media/base/decryptor.h
diff --git a/media/base/decryptor.h b/media/base/decryptor.h
index 2c2cf793639f05559b83e73e2cc8dece6780a770..7061363924dc4d3043340240498d5c14ece51dd3 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 inserted into the
ddorwin 2014/08/04 18:59:08 re: "inserted": "attached" is used elsewhere. We s
jrummell 2014/08/07 01:54:25 Done.
+// pipeline. Parameter indicates if the operation succeeded of failed.
ddorwin 2014/08/04 18:59:08 nit: more concise: ... whether the operation succe
jrummell 2014/08/07 01:54:25 Done.
+typedef base::Callback<void(bool)> DecryptorInsertedCB;
+
+// Callback to notify that a decryptor is ready. DecryptorInsertedCB is called
+// when the decryptor has been completely inserted into the pipeline.
+typedef base::Callback<void(Decryptor*, const DecryptorInsertedCB&)>
+ DecryptorReadyCB;
// Callback to set/cancel a DecryptorReadyCB.
// Calling this callback with a non-null callback registers decryptor ready

Powered by Google App Engine
This is Rietveld 408576698