| Index: media/cdm/ppapi/clear_key_cdm.h
|
| diff --git a/media/cdm/ppapi/clear_key_cdm.h b/media/cdm/ppapi/clear_key_cdm.h
|
| index 0ec18a101a02303b230dc5ad58f8b571f1d69805..e820d1093e24cb4613246ce1a5731950af2a688e 100644
|
| --- a/media/cdm/ppapi/clear_key_cdm.h
|
| +++ b/media/cdm/ppapi/clear_key_cdm.h
|
| @@ -23,6 +23,7 @@
|
| #endif
|
|
|
| namespace media {
|
| +class FileIOTestRunner;
|
| class CdmVideoDecoder;
|
| class DecoderBuffer;
|
| class FFmpegCdmAudioDecoder;
|
| @@ -30,7 +31,9 @@ class FFmpegCdmAudioDecoder;
|
| // Clear key implementation of the cdm::ContentDecryptionModule interface.
|
| class ClearKeyCdm : public ClearKeyCdmInterface {
|
| public:
|
| - explicit ClearKeyCdm(Host* host, bool is_decrypt_only);
|
| + explicit ClearKeyCdm(Host* host,
|
| + bool is_decrypt_only,
|
| + bool should_test_file_io);
|
| virtual ~ClearKeyCdm();
|
|
|
| // ContentDecryptionModule implementation.
|
| @@ -143,6 +146,11 @@ class ClearKeyCdm : public ClearKeyCdmInterface {
|
| cdm::AudioFrames* audio_frames);
|
| #endif // CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER
|
|
|
| + void StartFileIOTest();
|
| +
|
| + // Callback for CDM File IO test.
|
| + void OnFileIOTestComplete(bool success);
|
| +
|
| Client client_;
|
| AesDecryptor decryptor_;
|
|
|
| @@ -153,8 +161,10 @@ class ClearKeyCdm : public ClearKeyCdmInterface {
|
| ClearKeyCdmHost* host_;
|
|
|
| const bool is_decrypt_only_;
|
| + const bool should_test_file_io_;
|
| +
|
| + std::string last_session_id_;
|
|
|
| - std::string heartbeat_session_id_;
|
| std::string next_heartbeat_message_;
|
|
|
| // Timer delay in milliseconds for the next host_->SetTimer() call.
|
| @@ -178,6 +188,8 @@ class ClearKeyCdm : public ClearKeyCdmInterface {
|
|
|
| scoped_ptr<CdmVideoDecoder> video_decoder_;
|
|
|
| + scoped_ptr<FileIOTestRunner> file_io_test_runner_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm);
|
| };
|
|
|
|
|