| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 5 #ifndef MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| 6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // cdm::Host_2 implementation. | 95 // cdm::Host_2 implementation. |
| 96 virtual void SendPlatformChallenge( | 96 virtual void SendPlatformChallenge( |
| 97 const char* service_id, uint32_t service_id_length, | 97 const char* service_id, uint32_t service_id_length, |
| 98 const char* challenge, uint32_t challenge_length) OVERRIDE; | 98 const char* challenge, uint32_t challenge_length) OVERRIDE; |
| 99 virtual void EnableOutputProtection( | 99 virtual void EnableOutputProtection( |
| 100 uint32_t desired_protection_mask) OVERRIDE; | 100 uint32_t desired_protection_mask) OVERRIDE; |
| 101 virtual void QueryOutputProtectionStatus() OVERRIDE; | 101 virtual void QueryOutputProtectionStatus() OVERRIDE; |
| 102 virtual void OnDeferredInitializationDone( | 102 virtual void OnDeferredInitializationDone( |
| 103 cdm::StreamType stream_type, | 103 cdm::StreamType stream_type, |
| 104 cdm::Status decoder_status) OVERRIDE; | 104 cdm::Status decoder_status) OVERRIDE; |
| 105 virtual cdm::CdmFileIO* GetCdmFileIO(cdm::CdmFileIOClient* client) OVERRIDE; |
| 105 | 106 |
| 106 private: | 107 private: |
| 107 typedef linked_ptr<DecryptedBlockImpl> LinkedDecryptedBlock; | 108 typedef linked_ptr<DecryptedBlockImpl> LinkedDecryptedBlock; |
| 108 typedef linked_ptr<VideoFrameImpl> LinkedVideoFrame; | 109 typedef linked_ptr<VideoFrameImpl> LinkedVideoFrame; |
| 109 typedef linked_ptr<AudioFramesImpl> LinkedAudioFrames; | 110 typedef linked_ptr<AudioFramesImpl> LinkedAudioFrames; |
| 110 | 111 |
| 111 bool CreateCdmInstance(const std::string& key_system); | 112 bool CreateCdmInstance(const std::string& key_system); |
| 112 | 113 |
| 113 void SendUnknownKeyError(uint32_t reference_id); | 114 void SendUnknownKeyError(uint32_t reference_id); |
| 114 void SendKeyAdded(uint32_t reference_id); | 115 void SendKeyAdded(uint32_t reference_id); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 uint32_t deferred_audio_decoder_config_id_; | 194 uint32_t deferred_audio_decoder_config_id_; |
| 194 bool deferred_initialize_video_decoder_; | 195 bool deferred_initialize_video_decoder_; |
| 195 uint32_t deferred_video_decoder_config_id_; | 196 uint32_t deferred_video_decoder_config_id_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 198 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace media | 201 } // namespace media |
| 201 | 202 |
| 202 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 203 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| OLD | NEW |