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

Unified Diff: media/base/decryptor.h

Issue 11492003: Encrypted Media: Support Audio Decrypt-Only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: working and not hacky; need to update comments and tests Created 8 years 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 87c275d7a845ea7d4447d7dcefac4bdbb61fab25..1a19349eaeaae2bdfd61bf996695af1e6af30304 100644
--- a/media/base/decryptor.h
+++ b/media/base/decryptor.h
@@ -204,6 +204,18 @@ class MEDIA_EXPORT Decryptor {
DISALLOW_COPY_AND_ASSIGN(Decryptor);
};
+// Callback to notify decryptor creation.
xhwang 2012/12/11 02:27:40 I moved this block here since it's duplicated in a
ddorwin 2012/12/11 05:13:34 I agree about the length (plus the lack of meaning
xhwang 2012/12/12 23:43:28 Renamed.
+typedef base::Callback<void(Decryptor*)> DecryptorNotificationCB;
+// Callback to request/cancel decryptor creation notification.
ddorwin 2012/12/11 05:13:34 "...notification of decryptor creation."
xhwang 2012/12/12 23:43:28 Done.
+// Calling this callback with a non-null callback registers decryptor creation
+// notification. When the decryptor is created, notification will be sent
+// through the provided callback.
+// Calling this callback with a null callback cancels previously registered
+// decryptor creation notification. Any previously provided callback will be
+// fired immediately with NULL.
+typedef base::Callback<void(const DecryptorNotificationCB&)>
ddorwin 2012/12/11 05:13:34 This is a callback for a callback? Seems weird. Ma
xhwang 2012/12/11 19:43:04 The original naming (proposed by fischman) actuall
scherkus (not reviewing) 2012/12/11 20:52:15 Well this is actually setting / unsetting an obser
ddorwin 2012/12/12 00:30:25 Either of these SGTM. Combining scherkus's and xhw
xhwang 2012/12/12 23:43:28 Done.
+ RequestDecryptorNotificationCB;
+
} // namespace media
#endif // MEDIA_BASE_DECRYPTOR_H_
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline.h » ('j') | media/base/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698