summaryrefslogtreecommitdiffstats
path: root/webkit/media/crypto/ppapi/clear_key_cdm.cc
diff options
context:
space:
mode:
authortomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-02 02:43:27 +0000
committertomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-02 02:43:27 +0000
commit7ed56ede1867409ebfe39f6d3faf150b4554a19d (patch)
tree0b1db965b2ed38933838c6f36064ce95bbb207f9 /webkit/media/crypto/ppapi/clear_key_cdm.cc
parent690c793fd7db19de0155c24f4a16c6b646c7189d (diff)
downloadchromium_src-7ed56ede1867409ebfe39f6d3faf150b4554a19d.zip
chromium_src-7ed56ede1867409ebfe39f6d3faf150b4554a19d.tar.gz
chromium_src-7ed56ede1867409ebfe39f6d3faf150b4554a19d.tar.bz2
Rename cdm::OutputBuffer to DecryptedBlock.
The replacement class is an interface, and is implemented in cdm_wrapper. Also renames cdm::Buffer's buffer method to data for clarity at call sites (former name could result in calls like buffer->buffer()->buffer()). BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/11018007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media/crypto/ppapi/clear_key_cdm.cc')
-rw-r--r--webkit/media/crypto/ppapi/clear_key_cdm.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/media/crypto/ppapi/clear_key_cdm.cc b/webkit/media/crypto/ppapi/clear_key_cdm.cc
index 74e117c..a70aa6e 100644
--- a/webkit/media/crypto/ppapi/clear_key_cdm.cc
+++ b/webkit/media/crypto/ppapi/clear_key_cdm.cc
@@ -150,7 +150,7 @@ cdm::Status ClearKeyCdm::GenerateKeyRequest(const uint8_t* init_data,
DCHECK(key_request->message());
DCHECK_EQ(key_request->message()->size(), client_.key_message_length());
- memcpy(reinterpret_cast<void*>(key_request->message()->buffer()),
+ memcpy(reinterpret_cast<void*>(key_request->message()->data()),
reinterpret_cast<const void*>(client_.key_message()),
client_.key_message_length());
@@ -197,7 +197,7 @@ static void CopyDecryptResults(
cdm::Status ClearKeyCdm::Decrypt(
const cdm::InputBuffer& encrypted_buffer,
- cdm::OutputBuffer* decrypted_buffer) {
+ cdm::DecryptedBlock* decrypted_block) {
DVLOG(1) << "Decrypt()";
scoped_refptr<media::DecoderBuffer> decoder_buffer =
@@ -218,12 +218,12 @@ cdm::Status ClearKeyCdm::Decrypt(
DCHECK(buffer);
int data_size = buffer->GetDataSize();
- decrypted_buffer->set_buffer(allocator_->Allocate(data_size));
- memcpy(reinterpret_cast<void*>(decrypted_buffer->buffer()->buffer()),
+ decrypted_block->set_buffer(allocator_->Allocate(data_size));
+ memcpy(reinterpret_cast<void*>(decrypted_block->buffer()->data()),
buffer->GetData(),
data_size);
- decrypted_buffer->set_timestamp(buffer->GetTimestamp().InMicroseconds());
+ decrypted_block->set_timestamp(buffer->GetTimestamp().InMicroseconds());
return cdm::kSuccess;
}