| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CRYPTO_AES_DECRYPTOR_H_ | 5 #ifndef MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
| 6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual bool GenerateKeyRequest(const std::string& key_system, | 37 virtual bool GenerateKeyRequest(const std::string& key_system, |
| 38 const std::string& type, | 38 const std::string& type, |
| 39 const uint8* init_data, | 39 const uint8* init_data, |
| 40 int init_data_length) OVERRIDE; | 40 int init_data_length) OVERRIDE; |
| 41 virtual void AddKey(const std::string& key_system, | 41 virtual void AddKey(const std::string& key_system, |
| 42 const uint8* key, int key_length, | 42 const uint8* key, int key_length, |
| 43 const uint8* init_data, int init_data_length, | 43 const uint8* init_data, int init_data_length, |
| 44 const std::string& session_id) OVERRIDE; | 44 const std::string& session_id) OVERRIDE; |
| 45 virtual void CancelKeyRequest(const std::string& key_system, | 45 virtual void CancelKeyRequest(const std::string& key_system, |
| 46 const std::string& session_id) OVERRIDE; | 46 const std::string& session_id) OVERRIDE; |
| 47 virtual Decryptor* GetDecryptor() OVERRIDE; |
| 47 | 48 |
| 48 // Decryptor implementation. | 49 // Decryptor implementation. |
| 49 virtual MediaKeys* GetMediaKeys() OVERRIDE; | |
| 50 virtual void RegisterNewKeyCB(StreamType stream_type, | 50 virtual void RegisterNewKeyCB(StreamType stream_type, |
| 51 const NewKeyCB& key_added_cb) OVERRIDE; | 51 const NewKeyCB& key_added_cb) OVERRIDE; |
| 52 virtual void Decrypt(StreamType stream_type, | 52 virtual void Decrypt(StreamType stream_type, |
| 53 const scoped_refptr<DecoderBuffer>& encrypted, | 53 const scoped_refptr<DecoderBuffer>& encrypted, |
| 54 const DecryptCB& decrypt_cb) OVERRIDE; | 54 const DecryptCB& decrypt_cb) OVERRIDE; |
| 55 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; | 55 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; |
| 56 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config, | 56 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config, |
| 57 const DecoderInitCB& init_cb) OVERRIDE; | 57 const DecoderInitCB& init_cb) OVERRIDE; |
| 58 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, | 58 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, |
| 59 const DecoderInitCB& init_cb) OVERRIDE; | 59 const DecoderInitCB& init_cb) OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 NewKeyCB new_audio_key_cb_; | 121 NewKeyCB new_audio_key_cb_; |
| 122 NewKeyCB new_video_key_cb_; | 122 NewKeyCB new_video_key_cb_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); | 124 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace media | 127 } // namespace media |
| 128 | 128 |
| 129 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 129 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
| OLD | NEW |