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

Unified Diff: webkit/media/crypto/ppapi/clear_key_cdm.h

Issue 10914028: Add CDM allocator interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some iteratative work plus work related to xhwang's comments. Created 8 years, 4 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/media/crypto/ppapi/clear_key_cdm.h
diff --git a/webkit/media/crypto/ppapi/clear_key_cdm.h b/webkit/media/crypto/ppapi/clear_key_cdm.h
index eaad45d9b2e095ba2e765f95e410523ade03de8f..36bbca31193a0ad0e0acf107beb01d9030b8d2b5 100644
--- a/webkit/media/crypto/ppapi/clear_key_cdm.h
+++ b/webkit/media/crypto/ppapi/clear_key_cdm.h
@@ -21,6 +21,8 @@ class DecoderBuffer;
namespace webkit_media {
+class CdmAllocator;
+
// Clear key implementation of the cdm::ContentDecryptionModule interface.
class ClearKeyCdm : public cdm::ContentDecryptionModule {
public:
@@ -28,6 +30,8 @@ class ClearKeyCdm : public cdm::ContentDecryptionModule {
virtual ~ClearKeyCdm();
// ContentDecryptionModule implementation.
+ virtual bool Initialize(CdmAllocator* allocator) OVERRIDE;
+
virtual cdm::Status GenerateKeyRequest(const uint8_t* init_data,
int init_data_size,
cdm::KeyMessage* key_request) OVERRIDE;
@@ -97,6 +101,8 @@ class ClearKeyCdm : public cdm::ContentDecryptionModule {
// Protects the |client_| from being accessed by the |decryptor_|
// simultaneously.
base::Lock client_lock_;
+ // Allocates shared memory buffers using the CDM wrapper.
+ CdmAllocator* allocator_iface_;
ddorwin 2012/09/04 09:53:15 generalize comment and remove _iface.
Tom Finegan 2012/09/07 00:46:36 Done.
};
} // namespace webkit_media

Powered by Google App Engine
This is Rietveld 408576698