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

Unified Diff: webkit/media/crypto/proxy_decryptor.cc

Issue 11106004: Allow null buffer resources to be returned through the PPB_ContentDecryptor_Private proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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 | « webkit/media/crypto/ppapi_decryptor.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/crypto/proxy_decryptor.cc
diff --git a/webkit/media/crypto/proxy_decryptor.cc b/webkit/media/crypto/proxy_decryptor.cc
index 62c02f4e1025e2fdbf3cf82d3021823cb9525b7c..5a0e4a8bdd8dcb1452cb685209001b937334fd2f 100644
--- a/webkit/media/crypto/proxy_decryptor.cc
+++ b/webkit/media/crypto/proxy_decryptor.cc
@@ -154,6 +154,7 @@ void ProxyDecryptor::CancelKeyRequest(const std::string& key_system,
void ProxyDecryptor::Decrypt(
const scoped_refptr<media::DecoderBuffer>& encrypted,
const DecryptCB& decrypt_cb) {
+ DVLOG(2) << "Decrypt()";
DCHECK(decryption_message_loop_->BelongsToCurrentThread());
DCHECK(!is_canceling_decrypt_);
@@ -170,7 +171,7 @@ void ProxyDecryptor::Decrypt(
decryptor = decryptor_.get();
}
if (!decryptor) {
- DVLOG(1) << "ProxyDecryptor::Decrypt(): decryptor not initialized.";
+ DVLOG(1) << "Decrypt(): decryptor not initialized.";
// TODO(xhwang): The same NeedKey may be fired here and multiple times in
// OnBufferDecrypted(). While the spec says only one NeedKey should be
@@ -183,6 +184,7 @@ void ProxyDecryptor::Decrypt(
}
void ProxyDecryptor::CancelDecrypt() {
+ DVLOG(1) << "CancelDecrypt()";
DCHECK(decryption_message_loop_->BelongsToCurrentThread());
if (!pending_buffer_to_decrypt_) {
@@ -281,6 +283,7 @@ void ProxyDecryptor::OnNewKeyAdded() {
}
void ProxyDecryptor::DecryptPendingBuffer() {
+ DVLOG(3) << "DecryptPendingBuffer()";
DCHECK(decryption_message_loop_->BelongsToCurrentThread());
DCHECK(pending_buffer_to_decrypt_);
DCHECK(!is_waiting_for_decryptor_);
@@ -301,6 +304,7 @@ void ProxyDecryptor::OnBufferDecrypted(
return;
}
+ DVLOG(2) << "OnBufferDecrypted() - status: " << status;
brettw 2012/10/12 19:44:06 I don't undrestand these DVLOG priorities. They se
DCHECK(pending_buffer_to_decrypt_);
DCHECK(!pending_decrypt_cb_.is_null());
DCHECK(is_waiting_for_decryptor_);
« no previous file with comments | « webkit/media/crypto/ppapi_decryptor.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698