| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // pp::Instance implementation. | 46 // pp::Instance implementation. |
| 47 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { | 47 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { |
| 48 return true; | 48 return true; |
| 49 } | 49 } |
| 50 | 50 |
| 51 // PPP_ContentDecryptor_Private implementation. | 51 // PPP_ContentDecryptor_Private implementation. |
| 52 // Note: Results of calls to these methods must be reported through the | 52 // Note: Results of calls to these methods must be reported through the |
| 53 // PPB_ContentDecryptor_Private interface. | 53 // PPB_ContentDecryptor_Private interface. |
| 54 virtual void Initialize(const std::string& key_system) OVERRIDE; | 54 virtual void Initialize(const std::string& key_system) OVERRIDE; |
| 55 virtual void SetServerCertificate( |
| 56 uint32_t promise_id, |
| 57 pp::VarArrayBuffer server_certificate) OVERRIDE; |
| 55 virtual void CreateSession(uint32_t promise_id, | 58 virtual void CreateSession(uint32_t promise_id, |
| 56 const std::string& init_data_type, | 59 const std::string& init_data_type, |
| 57 pp::VarArrayBuffer init_data, | 60 pp::VarArrayBuffer init_data, |
| 58 PP_SessionType session_type) OVERRIDE; | 61 PP_SessionType session_type) OVERRIDE; |
| 59 virtual void LoadSession(uint32_t promise_id, | 62 virtual void LoadSession(uint32_t promise_id, |
| 60 const std::string& web_session_id) OVERRIDE; | 63 const std::string& web_session_id) OVERRIDE; |
| 61 virtual void UpdateSession(uint32_t promise_id, | 64 virtual void UpdateSession(uint32_t promise_id, |
| 62 const std::string& web_session_id, | 65 const std::string& web_session_id, |
| 63 pp::VarArrayBuffer response) OVERRIDE; | 66 pp::VarArrayBuffer response) OVERRIDE; |
| 64 // TODO(jrummell): Pass this function through Pepper and add OVERRIDE. | |
| 65 virtual void CloseSession(uint32_t promise_id, | 67 virtual void CloseSession(uint32_t promise_id, |
| 66 const std::string& web_session_id); | 68 const std::string& web_session_id); |
| 67 // TODO(jrummell): Rename to RemoveSession(). | 69 virtual void RemoveSession(uint32_t promise_id, |
| 68 virtual void ReleaseSession(uint32_t promise_id, | 70 const std::string& web_session_id) OVERRIDE; |
| 69 const std::string& web_session_id) OVERRIDE; | |
| 70 // TODO(jrummell): Pass this function through Pepper and add OVERRIDE. | |
| 71 virtual void GetUsableKeyIds(uint32_t promise_id, | 71 virtual void GetUsableKeyIds(uint32_t promise_id, |
| 72 const std::string& web_session_id); | 72 const std::string& web_session_id) OVERRIDE; |
| 73 virtual void Decrypt( | 73 virtual void Decrypt( |
| 74 pp::Buffer_Dev encrypted_buffer, | 74 pp::Buffer_Dev encrypted_buffer, |
| 75 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; | 75 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; |
| 76 virtual void InitializeAudioDecoder( | 76 virtual void InitializeAudioDecoder( |
| 77 const PP_AudioDecoderConfig& decoder_config, | 77 const PP_AudioDecoderConfig& decoder_config, |
| 78 pp::Buffer_Dev extra_data_buffer) OVERRIDE; | 78 pp::Buffer_Dev extra_data_buffer) OVERRIDE; |
| 79 virtual void InitializeVideoDecoder( | 79 virtual void InitializeVideoDecoder( |
| 80 const PP_VideoDecoderConfig& decoder_config, | 80 const PP_VideoDecoderConfig& decoder_config, |
| 81 pp::Buffer_Dev extra_data_buffer) OVERRIDE; | 81 pp::Buffer_Dev extra_data_buffer) OVERRIDE; |
| 82 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, | 82 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 uint32_t deferred_audio_decoder_config_id_; | 297 uint32_t deferred_audio_decoder_config_id_; |
| 298 bool deferred_initialize_video_decoder_; | 298 bool deferred_initialize_video_decoder_; |
| 299 uint32_t deferred_video_decoder_config_id_; | 299 uint32_t deferred_video_decoder_config_id_; |
| 300 | 300 |
| 301 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 301 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 } // namespace media | 304 } // namespace media |
| 305 | 305 |
| 306 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 306 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
| OLD | NEW |