Chromium Code Reviews| 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 44b3110e315dcc17353d302d724d80a125238f98..329ef4c4d97e09439153fb7e6d93e0ab00cdb124 100644 |
| --- a/webkit/media/crypto/ppapi/clear_key_cdm.h |
| +++ b/webkit/media/crypto/ppapi/clear_key_cdm.h |
| @@ -24,13 +24,14 @@ namespace webkit_media { |
| // Clear key implementation of the cdm::ContentDecryptionModule interface. |
| class ClearKeyCdm : public cdm::ContentDecryptionModule { |
| public: |
| - ClearKeyCdm(); |
| + explicit ClearKeyCdm(cdm::Allocator* allocator); |
| virtual ~ClearKeyCdm(); |
| // ContentDecryptionModule implementation. |
| - virtual cdm::Status GenerateKeyRequest(const uint8_t* init_data, |
| - int init_data_size, |
| - cdm::KeyMessage* key_request) OVERRIDE; |
| + virtual cdm::Status GenerateKeyRequest( |
| + const uint8_t* init_data, |
| + int init_data_size, |
| + cdm::KeyMessage* key_request) OVERRIDE; |
| virtual cdm::Status AddKey(const char* session_id, |
| int session_id_size, |
| const uint8_t* key, |
| @@ -98,9 +99,12 @@ class ClearKeyCdm : public cdm::ContentDecryptionModule { |
| Client client_; |
| media::AesDecryptor decryptor_; |
| + |
| // Protects the |client_| from being accessed by the |decryptor_| |
| // simultaneously. |
| base::Lock client_lock_; |
| + |
| + cdm::Allocator* allocator_; |
|
ddorwin
2012/09/17 21:19:23
*const
Tom Finegan
2012/09/18 01:08:02
Done.
|
| }; |
| } // namespace webkit_media |