| 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 23 matching lines...) Expand all Loading... |
| 34 virtual ~AesDecryptor(); | 34 virtual ~AesDecryptor(); |
| 35 | 35 |
| 36 // MediaKeys implementation. | 36 // MediaKeys implementation. |
| 37 virtual bool GenerateKeyRequest(const std::string& type, | 37 virtual bool GenerateKeyRequest(const std::string& type, |
| 38 const uint8* init_data, | 38 const uint8* init_data, |
| 39 int init_data_length) OVERRIDE; | 39 int init_data_length) OVERRIDE; |
| 40 virtual void AddKey(const uint8* key, int key_length, | 40 virtual void AddKey(const uint8* key, int key_length, |
| 41 const uint8* init_data, int init_data_length, | 41 const uint8* init_data, int init_data_length, |
| 42 const std::string& session_id) OVERRIDE; | 42 const std::string& session_id) OVERRIDE; |
| 43 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE; | 43 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE; |
| 44 virtual Decryptor* GetDecryptor() OVERRIDE; |
| 44 | 45 |
| 45 // Decryptor implementation. | 46 // Decryptor implementation. |
| 46 virtual MediaKeys* GetMediaKeys() OVERRIDE; | |
| 47 virtual void RegisterNewKeyCB(StreamType stream_type, | 47 virtual void RegisterNewKeyCB(StreamType stream_type, |
| 48 const NewKeyCB& key_added_cb) OVERRIDE; | 48 const NewKeyCB& key_added_cb) OVERRIDE; |
| 49 virtual void Decrypt(StreamType stream_type, | 49 virtual void Decrypt(StreamType stream_type, |
| 50 const scoped_refptr<DecoderBuffer>& encrypted, | 50 const scoped_refptr<DecoderBuffer>& encrypted, |
| 51 const DecryptCB& decrypt_cb) OVERRIDE; | 51 const DecryptCB& decrypt_cb) OVERRIDE; |
| 52 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; | 52 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; |
| 53 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config, | 53 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config, |
| 54 const DecoderInitCB& init_cb) OVERRIDE; | 54 const DecoderInitCB& init_cb) OVERRIDE; |
| 55 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, | 55 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, |
| 56 const DecoderInitCB& init_cb) OVERRIDE; | 56 const DecoderInitCB& init_cb) OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 NewKeyCB new_audio_key_cb_; | 118 NewKeyCB new_audio_key_cb_; |
| 119 NewKeyCB new_video_key_cb_; | 119 NewKeyCB new_video_key_cb_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); | 121 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace media | 124 } // namespace media |
| 125 | 125 |
| 126 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 126 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
| OLD | NEW |