/external/chromium_org/media/base/ |
decryptor.cc | 5 #include "media/base/decryptor.h" 9 Decryptor::Decryptor() {} 11 Decryptor::~Decryptor() {}
|
media_keys.cc | 13 Decryptor* MediaKeys::GetDecryptor() { return NULL; }
|
decryptor.h | 25 // All methods are called on the (video/audio) decoder thread. Decryptor 29 class MEDIA_EXPORT Decryptor { 46 Decryptor(); 47 virtual ~Decryptor(); 50 // with the Decryptor. 54 // decryptor. Only one NewKeyCB can be registered for one |stream_type|. 161 DISALLOW_COPY_AND_ASSIGN(Decryptor); 164 // Callback to notify that a decryptor is ready. 165 typedef base::Callback<void(Decryptor*)> DecryptorReadyCB; 168 // Calling this callback with a non-null callback registers decryptor read [all...] |
media_keys.h | 18 class Decryptor; 63 // Gets the Decryptor object associated with the MediaKeys. Returns NULL if 64 // no Decryptor object is associated. The returned object is only guaranteed 66 virtual Decryptor* GetDecryptor();
|
mock_filters.h | 15 #include "media/base/decryptor.h" 175 class MockDecryptor : public Decryptor {
|
/external/chromium_org/content/renderer/pepper/ |
content_decryptor_delegate.h | 15 #include "media/base/decryptor.h" 60 bool Decrypt(media::Decryptor::StreamType stream_type, 62 const media::Decryptor::DecryptCB& decrypt_cb); 63 bool CancelDecrypt(media::Decryptor::StreamType stream_type); 66 const media::Decryptor::DecoderInitCB& decoder_init_cb); 69 const media::Decryptor::DecoderInitCB& decoder_init_cb); 72 bool DeinitializeDecoder(media::Decryptor::StreamType stream_type); 73 bool ResetDecoder(media::Decryptor::StreamType stream_type); 77 const media::Decryptor::AudioDecodeCB& audio_decode_cb); 80 const media::Decryptor::VideoDecodeCB& video_decode_cb) [all...] |
content_decryptor_delegate.cc | 189 media::Decryptor::Status PpDecryptResultToMediaDecryptorStatus( 193 return media::Decryptor::kSuccess; 195 return media::Decryptor::kNoKey; 197 return media::Decryptor::kNeedMoreData; 199 return media::Decryptor::kError; 201 return media::Decryptor::kError; 204 return media::Decryptor::kError; 209 media::Decryptor::StreamType stream_type) { 211 case media::Decryptor::kAudio: 213 case media::Decryptor::kVideo [all...] |
/external/chromium_org/media/filters/ |
decrypting_audio_decoder.h | 14 #include "media/base/decryptor.h" 25 class Decryptor; 27 // Decryptor-based AudioDecoder implementation that can decrypt and decode 33 // We do not currently have a way to let the Decryptor choose the output 35 // Decryptor implementations to decode audio into a fixed integer sample 73 void SetDecryptor(Decryptor* decryptor); 75 // Callback for Decryptor::InitializeAudioDecoder() during initialization. 78 // Callback for Decryptor::InitializeAudioDecoder() during config change. 88 // Callback for Decryptor::DecryptAndDecodeAudio() [all...] |
decrypting_demuxer_stream.h | 12 #include "media/base/decryptor.h" 25 // Decryptor-based DemuxerStream implementation that converts a potentially 48 // render main thread. If a Decryptor depends on the render main thread 75 void SetDecryptor(Decryptor* decryptor); 83 // Callback for Decryptor::Decrypt(). 84 void DeliverBuffer(Decryptor::Status status, 94 // Returns Decryptor::StreamType converted from |stream_type_|. 95 Decryptor::StreamType GetDecryptorStreamType() const; 117 // Callback to request/cancel decryptor creation notification [all...] |
decrypting_video_decoder.h | 10 #include "media/base/decryptor.h" 21 class Decryptor; 23 // Decryptor-based VideoDecoder implementation that can decrypt and decode 59 void SetDecryptor(Decryptor* decryptor); 61 // Callback for Decryptor::InitializeVideoDecoder() during initialization. 66 // Callback for Decryptor::DecryptAndDecodeVideo(). 68 Decryptor::Status status, 93 // Callback to request/cancel decryptor creation notification. 96 Decryptor* decryptor_ [all...] |
decrypting_video_decoder_unittest.cc | 95 EXPECT_CALL(*decryptor_, RegisterNewKeyCB(Decryptor::kVideo, _)) 102 EXPECT_CALL(*decryptor_, DeinitializeDecoder(Decryptor::kVideo)); 127 .WillOnce(RunCallback<1>(Decryptor::kSuccess, decoded_video_frame_)) 128 .WillRepeatedly(RunCallback<1>(Decryptor::kNeedMoreData, 154 // the decryptor. 160 .WillRepeatedly(RunCallback<1>(Decryptor::kNoKey, null_video_frame_)); 170 Decryptor::kSuccess, scoped_refptr<VideoFrame>(NULL)); 185 EXPECT_CALL(*decryptor_, ResetDecoder(Decryptor::kVideo)) 194 EXPECT_CALL(*decryptor_, RegisterNewKeyCB(Decryptor::kVideo, 197 EXPECT_CALL(*decryptor_, DeinitializeDecoder(Decryptor::kVideo) [all...] |
decrypting_audio_decoder_unittest.cc | 112 EXPECT_CALL(*decryptor_, RegisterNewKeyCB(Decryptor::kAudio, _)) 144 Decryptor::AudioBuffers end_of_stream_frames_(1, end_of_stream_frame_); 150 .WillOnce(RunCallback<1>(Decryptor::kSuccess, decoded_frame_list_)) 151 .WillRepeatedly(RunCallback<1>(Decryptor::kNeedMoreData, 152 Decryptor::AudioBuffers())); 189 // decryptor. 197 .WillRepeatedly(RunCallback<1>(Decryptor::kNoKey, 198 Decryptor::AudioBuffers())); 207 Decryptor::kSuccess, Decryptor::AudioBuffers()) [all...] |
pipeline_integration_test_base.h | 26 class Decryptor; 72 bool Start(const base::FilePath& file_path, Decryptor* decryptor); 80 const base::FilePath& file_path, Decryptor* decryptor); 127 scoped_ptr<Demuxer> demuxer, Decryptor* decryptor); 129 void SetDecryptor(Decryptor* decryptor,
|
decrypting_video_decoder.cc | 15 #include "media/base/decryptor.h" 58 decryptor_->DeinitializeDecoder(Decryptor::kVideo); 105 decryptor_->ResetDecoder(Decryptor::kVideo); 135 decryptor_->RegisterNewKeyCB(Decryptor::kVideo, Decryptor::NewKeyCB()); 136 decryptor_->DeinitializeDecoder(Decryptor::kVideo); 156 void DecryptingVideoDecoder::SetDecryptor(Decryptor* decryptor) { 168 if (!decryptor) { 174 decryptor_ = decryptor; [all...] |
decrypting_audio_decoder.cc | 20 #include "media/base/decryptor.h" 125 decryptor_->ResetDecoder(Decryptor::kAudio); 166 void DecryptingAudioDecoder::SetDecryptor(Decryptor* decryptor) { 175 if (!decryptor) { 182 decryptor_ = decryptor; 223 Decryptor::kAudio, BindToCurrentLoop(base::Bind( 292 decryptor_->DeinitializeDecoder(Decryptor::kAudio); 343 Decryptor::Status status, 344 const Decryptor::AudioBuffers& frames) [all...] |
video_decoder_selector.h | 12 #include "media/base/decryptor.h" 24 class Decryptor; 47 // no decryptor will be available to perform decryption.
|
decrypting_demuxer_stream.cc | 16 #include "media/base/decryptor.h" 131 Decryptor::NewKeyCB()); 174 void DecryptingDemuxerStream::SetDecryptor(Decryptor* decryptor) { 183 if (!decryptor) { 189 decryptor_ = decryptor; 274 Decryptor::Status status, 279 DCHECK_NE(status, Decryptor::kNeedMoreData); 293 DCHECK_EQ(status == Decryptor::kSuccess, decrypted_buffer.get() != NULL); 295 if (status == Decryptor::kError) [all...] |
decrypting_demuxer_stream_unittest.cc | 53 ACTION_P2(SetDecryptorIfNotNull, decryptor, is_decryptor_set) { 55 arg0.Run(decryptor); 57 *is_decryptor_set = !arg0.is_null() && decryptor; 113 EXPECT_CALL(*decryptor_, RegisterNewKeyCB(Decryptor::kAudio, _)) 153 // For clearbuffer, decryptor->Decrypt() will not be called. 171 .WillOnce(RunCallback<2>(Decryptor::kSuccess, decrypted_buffer_)); 199 // Make sure Read() triggers a Decrypt() on the decryptor. 207 .WillRepeatedly(RunCallback<2>(Decryptor::kNoKey, 216 base::ResetAndReturn(&pending_decrypt_cb_).Run(Decryptor::kSuccess, NULL); 228 EXPECT_CALL(*decryptor_, CancelDecrypt(Decryptor::kAudio) [all...] |
pipeline_integration_test_base.cc | 137 Decryptor* decryptor) { 143 CreateFilterCollection(file_path, decryptor), 212 Decryptor* decryptor) { 224 return CreateFilterCollection(demuxer.Pass(), decryptor); 230 Decryptor* decryptor) { 248 decryptor), 276 decryptor)); [all...] |
video_frame_stream_unittest.cc | 54 // Decryptor can only decrypt (not decrypt-and-decode) so that 102 void Decrypt(Decryptor::StreamType stream_type, 104 const Decryptor::DecryptCB& decrypt_cb) { 107 decrypt_cb.Run(Decryptor::kNoKey, NULL); 111 DCHECK_EQ(stream_type, Decryptor::kVideo); 116 decrypt_cb.Run(Decryptor::kSuccess, decrypted); 192 // Initialize will fail because no decryptor is available. 312 // Use NiceMock since we don't care about most of calls on the decryptor, 326 // Decryptor has no key to decrypt a frame.
|
/external/chromium_org/media/cdm/ |
aes_decryptor.h | 16 #include "media/base/decryptor.h" 28 class MEDIA_EXPORT AesDecryptor : public MediaKeys, public Decryptor { 46 virtual Decryptor* GetDecryptor() OVERRIDE; 48 // Decryptor implementation.
|
aes_decryptor_unittest.cc | 270 MOCK_METHOD2(BufferDecrypted, void(Decryptor::Status, 290 EXPECT_CALL(*this, BufferDecrypted(Decryptor::kSuccess, NotNull())) 294 EXPECT_CALL(*this, BufferDecrypted(Decryptor::kError, IsNull())) 298 EXPECT_CALL(*this, BufferDecrypted(Decryptor::kNoKey, IsNull())) 303 decryptor_.Decrypt(Decryptor::kVideo, encrypted, decrypt_cb_); 415 decryptor_.Decrypt(Decryptor::kVideo, encrypted_buffer, decrypt_cb_);
|
/external/chromium_org/content/renderer/media/crypto/ |
ppapi_decryptor.h | 14 #include "media/base/decryptor.h" 26 // PpapiDecryptor implements media::MediaKeys and media::Decryptor and forwards 29 class PpapiDecryptor : public media::MediaKeys, public media::Decryptor { 53 virtual Decryptor* GetDecryptor() OVERRIDE; 55 // media::Decryptor implementation.
|
ppapi_decryptor.cc | 138 media::Decryptor* PpapiDecryptor::GetDecryptor() { 141 // Decryptor interface of the PpapiDecryptor.
|
/external/chromium_org/media/cdm/ppapi/ |
clear_key_cdm.cc | 332 media::Decryptor::Status* status_copy, 334 media::Decryptor::Status status, 537 media::Decryptor::Status status = media::Decryptor::kError; 541 media::Decryptor::kVideo, 545 if (status == media::Decryptor::kError) 548 if (status == media::Decryptor::kNoKey) 551 DCHECK_EQ(status, media::Decryptor::kSuccess);
|