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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 | 51 |
52 // pp::Instance implementation. | 52 // pp::Instance implementation. |
53 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { | 53 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { |
54 return true; | 54 return true; |
55 } | 55 } |
56 | 56 |
57 // PPP_ContentDecryptor_Private implementation. | 57 // PPP_ContentDecryptor_Private implementation. |
58 // Note: Results of calls to these methods must be reported through the | 58 // Note: Results of calls to these methods must be reported through the |
59 // PPB_ContentDecryptor_Private interface. | 59 // PPB_ContentDecryptor_Private interface. |
60 virtual void Initialize(const std::string& key_system) OVERRIDE; | 60 virtual void Initialize(const std::string& key_system) OVERRIDE; |
61 virtual void SetServerCertificate( | |
62 uint32_t promise_id, | |
63 pp::VarArrayBuffer server_certificate) OVERRIDE; | |
61 virtual void CreateSession(uint32_t promise_id, | 64 virtual void CreateSession(uint32_t promise_id, |
62 const std::string& init_data_type, | 65 const std::string& init_data_type, |
63 pp::VarArrayBuffer init_data, | 66 pp::VarArrayBuffer init_data, |
64 PP_SessionType session_type) OVERRIDE; | 67 PP_SessionType session_type) OVERRIDE; |
65 virtual void LoadSession(uint32_t promise_id, | 68 virtual void LoadSession(uint32_t promise_id, |
66 const std::string& web_session_id) OVERRIDE; | 69 const std::string& web_session_id) OVERRIDE; |
67 virtual void UpdateSession(uint32_t promise_id, | 70 virtual void UpdateSession(uint32_t promise_id, |
68 const std::string& web_session_id, | 71 const std::string& web_session_id, |
69 pp::VarArrayBuffer response) OVERRIDE; | 72 pp::VarArrayBuffer response) OVERRIDE; |
70 // TODO(jrummell): Rename to CloseSession(). | 73 virtual void GetUsableKeyIds(uint32_t promise_id, |
ddorwin
2014/08/22 20:49:20
ditto
jrummell
2014/08/25 21:54:36
Done.
| |
71 virtual void ReleaseSession(uint32_t promise_id, | 74 const std::string& web_session_id) OVERRIDE; |
72 const std::string& web_session_id) OVERRIDE; | 75 virtual void CloseSession(uint32_t promise_id, |
73 // TODO(jrummell): Pass these 2 functions through Pepper and add OVERRIDE. | 76 const std::string& web_session_id) OVERRIDE; |
74 virtual void RemoveSession(uint32_t promise_id, | 77 virtual void RemoveSession(uint32_t promise_id, |
75 const std::string& web_session_id); | 78 const std::string& web_session_id) OVERRIDE; |
76 virtual void GetUsableKeyIds(uint32_t promise_id, | |
77 const std::string& web_session_id); | |
78 virtual void Decrypt( | 79 virtual void Decrypt( |
79 pp::Buffer_Dev encrypted_buffer, | 80 pp::Buffer_Dev encrypted_buffer, |
80 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; | 81 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; |
81 virtual void InitializeAudioDecoder( | 82 virtual void InitializeAudioDecoder( |
82 const PP_AudioDecoderConfig& decoder_config, | 83 const PP_AudioDecoderConfig& decoder_config, |
83 pp::Buffer_Dev extra_data_buffer) OVERRIDE; | 84 pp::Buffer_Dev extra_data_buffer) OVERRIDE; |
84 virtual void InitializeVideoDecoder( | 85 virtual void InitializeVideoDecoder( |
85 const PP_VideoDecoderConfig& decoder_config, | 86 const PP_VideoDecoderConfig& decoder_config, |
86 pp::Buffer_Dev extra_data_buffer) OVERRIDE; | 87 pp::Buffer_Dev extra_data_buffer) OVERRIDE; |
87 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, | 88 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 uint32_t deferred_audio_decoder_config_id_; | 311 uint32_t deferred_audio_decoder_config_id_; |
311 bool deferred_initialize_video_decoder_; | 312 bool deferred_initialize_video_decoder_; |
312 uint32_t deferred_video_decoder_config_id_; | 313 uint32_t deferred_video_decoder_config_id_; |
313 | 314 |
314 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); | 315 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); |
315 }; | 316 }; |
316 | 317 |
317 } // namespace media | 318 } // namespace media |
318 | 319 |
319 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ | 320 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ |
OLD | NEW |