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

Unified Diff: media/base/decryptor.h

Issue 10822026: Implement "Key Presence" step in "Encrypted Block Encounted" algorithm in EME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 56696695037a8ce1efba475b67552d6078bcabfe..537871ac293484eaf13fe3b5d9120ce2d8d053c5 100644
--- a/media/base/decryptor.h
+++ b/media/base/decryptor.h
@@ -20,7 +20,7 @@ class DecoderBuffer;
// All public methods other than Decrypt() will be called on the renderer
// thread. Therefore, these calls should be fast and nonblocking, with key
// events fired asynchronously. Decrypt() will be called on the (video/audio)
-// decoder thread synchronously.
+// decoder thread.
class MEDIA_EXPORT Decryptor {
public:
enum KeyError {
@@ -78,6 +78,9 @@ class MEDIA_EXPORT Decryptor {
virtual void Decrypt(const scoped_refptr<DecoderBuffer>& encrypted,
const DecryptCB& decrypt_cb) = 0;
+ // Stops the decryptor and fires any pending DecryptCB immediately.
scherkus (not reviewing) 2012/08/02 18:05:32 fires the cb with what result?
xhwang 2012/08/03 20:08:10 Done.
+ virtual void Stop() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(Decryptor);
};

Powered by Google App Engine
This is Rietveld 408576698