| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 int key_length, | 42 int key_length, |
| 43 const uint8* init_data, | 43 const uint8* init_data, |
| 44 int init_data_length, | 44 int init_data_length, |
| 45 const std::string& session_id) OVERRIDE; | 45 const std::string& session_id) OVERRIDE; |
| 46 virtual void CancelKeyRequest(const std::string& key_system, | 46 virtual void CancelKeyRequest(const std::string& key_system, |
| 47 const std::string& session_id) OVERRIDE; | 47 const std::string& session_id) OVERRIDE; |
| 48 virtual void Decrypt(StreamType stream_type, | 48 virtual void Decrypt(StreamType stream_type, |
| 49 const scoped_refptr<DecoderBuffer>& encrypted, | 49 const scoped_refptr<DecoderBuffer>& encrypted, |
| 50 const DecryptCB& decrypt_cb) OVERRIDE; | 50 const DecryptCB& decrypt_cb) OVERRIDE; |
| 51 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; | 51 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; |
| 52 virtual void InitializeAudioDecoder(scoped_ptr<AudioDecoderConfig> config, | 52 virtual void InitializeAudioDecoder( |
| 53 const DecoderInitCB& init_cb, | 53 scoped_ptr<AudioDecoderConfig> config, |
| 54 const KeyAddedCB& key_added_cb) OVERRIDE; | 54 const DecoderInitCB& init_cb, |
| 55 virtual void InitializeVideoDecoder(scoped_ptr<VideoDecoderConfig> config, | 55 const OnKeyAddedCB& key_added_cb) OVERRIDE; |
| 56 const DecoderInitCB& init_cb, | 56 virtual void InitializeVideoDecoder( |
| 57 const KeyAddedCB& key_added_cb) OVERRIDE; | 57 scoped_ptr<VideoDecoderConfig> config, |
| 58 const DecoderInitCB& init_cb, |
| 59 const OnKeyAddedCB& key_added_cb) OVERRIDE; |
| 58 virtual void DecryptAndDecodeAudio( | 60 virtual void DecryptAndDecodeAudio( |
| 59 const scoped_refptr<DecoderBuffer>& encrypted, | 61 const scoped_refptr<DecoderBuffer>& encrypted, |
| 60 const AudioDecodeCB& audio_decode_cb) OVERRIDE; | 62 const AudioDecodeCB& audio_decode_cb) OVERRIDE; |
| 61 virtual void DecryptAndDecodeVideo( | 63 virtual void DecryptAndDecodeVideo( |
| 62 const scoped_refptr<DecoderBuffer>& encrypted, | 64 const scoped_refptr<DecoderBuffer>& encrypted, |
| 63 const VideoDecodeCB& video_decode_cb) OVERRIDE; | 65 const VideoDecodeCB& video_decode_cb) OVERRIDE; |
| 64 virtual void ResetDecoder(StreamType stream_type) OVERRIDE; | 66 virtual void ResetDecoder(StreamType stream_type) OVERRIDE; |
| 65 virtual void DeinitializeDecoder(StreamType stream_type) OVERRIDE; | 67 virtual void DeinitializeDecoder(StreamType stream_type) OVERRIDE; |
| 66 | 68 |
| 67 private: | 69 private: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 static uint32 next_session_id_; | 113 static uint32 next_session_id_; |
| 112 | 114 |
| 113 DecryptorClient* const client_; | 115 DecryptorClient* const client_; |
| 114 | 116 |
| 115 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); | 117 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace media | 120 } // namespace media |
| 119 | 121 |
| 120 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ | 122 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ |
| OLD | NEW |