| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // pp::Instance implementation. | 47 // pp::Instance implementation. |
| 48 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { | 48 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { |
| 49 return true; | 49 return true; |
| 50 } | 50 } |
| 51 | 51 |
| 52 // PPP_ContentDecryptor_Private implementation. | 52 // PPP_ContentDecryptor_Private implementation. |
| 53 // Note: Results of calls to these methods must be reported through the | 53 // Note: Results of calls to these methods must be reported through the |
| 54 // PPB_ContentDecryptor_Private interface. | 54 // PPB_ContentDecryptor_Private interface. |
| 55 virtual void Initialize(const std::string& key_system) OVERRIDE; | 55 virtual void Initialize(const std::string& key_system) OVERRIDE; |
| 56 virtual void CreateSession(uint32_t session_id, | 56 virtual void CreateSession(uint32_t session_id, |
| 57 const std::string& type, | 57 const std::string& content_type, |
| 58 pp::VarArrayBuffer init_data) OVERRIDE; | 58 pp::VarArrayBuffer init_data) OVERRIDE; |
| 59 virtual void LoadSession(uint32_t session_id, |
| 60 const std::string& web_session_id) OVERRIDE; |
| 59 virtual void UpdateSession(uint32_t session_id, | 61 virtual void UpdateSession(uint32_t session_id, |
| 60 pp::VarArrayBuffer response) OVERRIDE; | 62 pp::VarArrayBuffer response) OVERRIDE; |
| 61 virtual void ReleaseSession(uint32_t session_id) OVERRIDE; | 63 virtual void ReleaseSession(uint32_t session_id) OVERRIDE; |
| 62 virtual void Decrypt( | 64 virtual void Decrypt( |
| 63 pp::Buffer_Dev encrypted_buffer, | 65 pp::Buffer_Dev encrypted_buffer, |
| 64 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; | 66 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; |
| 65 virtual void InitializeAudioDecoder( | 67 virtual void InitializeAudioDecoder( |
| 66 const PP_AudioDecoderConfig& decoder_config, | 68 const PP_AudioDecoderConfig& decoder_config, |
| 67 pp::Buffer_Dev extra_data_buffer) OVERRIDE; | 69 pp::Buffer_Dev extra_data_buffer) OVERRIDE; |
| 68 virtual void InitializeVideoDecoder( | 70 virtual void InitializeVideoDecoder( |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 uint32_t deferred_audio_decoder_config_id_; | 214 uint32_t deferred_audio_decoder_config_id_; |
| 213 bool deferred_initialize_video_decoder_; | 215 bool deferred_initialize_video_decoder_; |
| 214 uint32_t deferred_video_decoder_config_id_; | 216 uint32_t deferred_video_decoder_config_id_; |
| 215 | 217 |
| 216 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 218 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
| 217 }; | 219 }; |
| 218 | 220 |
| 219 } // namespace media | 221 } // namespace media |
| 220 | 222 |
| 221 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 223 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| OLD | NEW |