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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.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: 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
Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index d0b20fca2e48611fbb6ea62fdfea9bfe7f709164..cb829aeeba87996388f198e642b3ba2bc0521bc4 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1515,6 +1515,7 @@ bool PluginInstance::CancelKeyRequest(const std::string& session_id) {
bool PluginInstance::Decrypt(
const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
const media::Decryptor::DecryptCB& decrypt_cb) {
+ DVLOG(2) << "Decrypt()";
if (!LoadContentDecryptorInterface())
return false;
@@ -1527,6 +1528,7 @@ bool PluginInstance::Decrypt(
return false;
uint32_t request_id = next_decryption_request_id_++;
+ DVLOG(2) << "Decrypt() - request_id " << request_id;
PP_EncryptedBlockInfo block_info;
DCHECK(encrypted_buffer->GetDecryptConfig());
@@ -2282,6 +2284,8 @@ void PluginInstance::KeyError(PP_Instance instance,
void PluginInstance::DeliverBlock(PP_Instance instance,
PP_Resource decrypted_block,
const PP_DecryptedBlockInfo* block_info) {
+ DVLOG(2) << "DeliverBlock() - request_id "
+ << block_info->tracking_info.request_id;
DCHECK(block_info);
DecryptionCBMap::iterator found = pending_decryption_cbs_.find(
block_info->tracking_info.request_id);
@@ -2323,6 +2327,7 @@ void PluginInstance::DeliverBlock(PP_Instance instance,
void PluginInstance::DeliverFrame(PP_Instance instance,
PP_Resource decrypted_frame,
const PP_DecryptedFrameInfo* frame_info) {
+ DVLOG(2) << "DeliverFrame()";
// TODO(tomfinegan): To be implemented after completion of v0.1 of the
// EME/CDM work.
}
@@ -2330,6 +2335,7 @@ void PluginInstance::DeliverFrame(PP_Instance instance,
void PluginInstance::DeliverSamples(PP_Instance instance,
PP_Resource decrypted_samples,
const PP_DecryptedBlockInfo* block_info) {
+ DVLOG(2) << "DeliverSamples()";
// TODO(tomfinegan): To be implemented after completion of v0.1 of the
// EME/CDM work.
}
« webkit/media/crypto/proxy_decryptor.cc ('K') | « webkit/media/crypto/proxy_decryptor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698