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

Unified Diff: media/crypto/aes_decryptor.cc

Issue 10969028: Add video decoding methods in Decryptor and add DecryptingVideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/crypto/aes_decryptor.cc
diff --git a/media/crypto/aes_decryptor.cc b/media/crypto/aes_decryptor.cc
index 0fdfa2d2ea56dcae2c478d5574e38b05f40d02aa..5592126c63944bda3b326c35159467069a50a487 100644
--- a/media/crypto/aes_decryptor.cc
+++ b/media/crypto/aes_decryptor.cc
@@ -14,6 +14,8 @@
#include "media/base/decoder_buffer.h"
#include "media/base/decrypt_config.h"
#include "media/base/decryptor_client.h"
+#include "media/base/video_decoder_config.h"
+#include "media/base/video_frame.h"
namespace media {
@@ -232,6 +234,26 @@ void AesDecryptor::Decrypt(const scoped_refptr<DecoderBuffer>& encrypted,
void AesDecryptor::Stop() {
}
+void AesDecryptor::InitializeVideoDecoder(const VideoDecoderConfig& config,
+ const InitializeCB& init_cb) {
+ init_cb.Run(false);
ddorwin 2012/09/21 00:36:08 Why not NOTREACHED();? If this is used to determin
xhwang 2012/09/25 23:52:32 Done.
+}
+
+void AesDecryptor::DecryptAndDecodeVideo(
+ const scoped_refptr<DecoderBuffer>& encrypted,
+ const VideoDecodeCB& video_decode_cb) {
+ NOTREACHED();
+ video_decode_cb.Run(kError, NULL);
+}
+
+void AesDecryptor::ResetVideoDecoder() {
+ NOTREACHED();
+}
+
+void AesDecryptor::StopVideoDecoder() {
+ NOTREACHED();
+}
+
void AesDecryptor::SetKey(const std::string& key_id,
scoped_ptr<DecryptionKey> decryption_key) {
base::AutoLock auto_lock(key_map_lock_);

Powered by Google App Engine
This is Rietveld 408576698