X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmedia%2Ffilters%2Fdecrypting_demuxer_stream.h;h=b98727751f36c6704e178942fb6bf3c3b4bfde73;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=ec9f4b4663287238edd475ad43e5543b1222e17c;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/media/filters/decrypting_demuxer_stream.h b/src/media/filters/decrypting_demuxer_stream.h index ec9f4b4..b987277 100644 --- a/src/media/filters/decrypting_demuxer_stream.h +++ b/src/media/filters/decrypting_demuxer_stream.h @@ -31,6 +31,8 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream { DecryptingDemuxerStream( const scoped_refptr& task_runner, const SetDecryptorReadyCB& set_decryptor_ready_cb); + + // Cancels all pending operations immediately and fires all pending callbacks. virtual ~DecryptingDemuxerStream(); void Initialize(DemuxerStream* stream, @@ -42,13 +44,6 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream { // kUninitialized if |this| hasn't been initialized, or to kIdle otherwise. void Reset(const base::Closure& closure); - // Cancels all pending operations immediately and fires all pending callbacks - // and sets the state to kStopped. Does NOT wait for any pending operations. - // Note: During the teardown process, media pipeline will be waiting on the - // render main thread. If a Decryptor depends on the render main thread - // (e.g. PpapiDecryptor), the pending DecryptCB would not be satisfied. - void Stop(const base::Closure& closure); - // DemuxerStream implementation. virtual void Read(const ReadCB& read_cb) OVERRIDE; virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; @@ -56,6 +51,7 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream { virtual Type type() OVERRIDE; virtual void EnableBitstreamConverter() OVERRIDE; virtual bool SupportsConfigChanges() OVERRIDE; + virtual VideoRotation video_rotation() OVERRIDE; private: // For a detailed state diagram please see this link: http://goo.gl/8jAok @@ -68,12 +64,13 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream { kIdle, kPendingDemuxerRead, kPendingDecrypt, - kWaitingForKey, - kStopped + kWaitingForKey }; - // Callback for DecryptorHost::RequestDecryptor(). - void SetDecryptor(Decryptor* decryptor); + // Callback for DecryptorHost::RequestDecryptor(). |decryptor_attached_cb| is + // called when the decryptor has been completely attached to the pipeline. + void SetDecryptor(Decryptor* decryptor, + const DecryptorAttachedCB& decryptor_attached_cb); // Callback for DemuxerStream::Read(). void DecryptBuffer(DemuxerStream::Status status,