| 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_FILTERS_DECRYPTING_VIDEO_DECODER_H_ |    5 #ifndef MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ | 
|    6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ |    6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ | 
|    7  |    7  | 
|    8 #include "base/callback.h" |    8 #include "base/callback.h" | 
|    9 #include "base/memory/ref_counted.h" |    9 #include "base/memory/ref_counted.h" | 
|   10 #include "media/base/decryptor.h" |   10 #include "media/base/decryptor.h" | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   87  |   87  | 
|   88   // Callback for Decryptor::InitializeVideoDecoder(). |   88   // Callback for Decryptor::InitializeVideoDecoder(). | 
|   89   void FinishInitialization(bool success); |   89   void FinishInitialization(bool success); | 
|   90  |   90  | 
|   91   // Carries out the buffer reading operation scheduled by Read(). |   91   // Carries out the buffer reading operation scheduled by Read(). | 
|   92   void DoRead(const ReadCB& read_cb); |   92   void DoRead(const ReadCB& read_cb); | 
|   93  |   93  | 
|   94   void ReadFromDemuxerStream(); |   94   void ReadFromDemuxerStream(); | 
|   95  |   95  | 
|   96   // Callback for DemuxerStream::Read(). |   96   // Callback for DemuxerStream::Read(). | 
|   97   void DecryptAndDecodeBuffer(DemuxerStream::Status status, |  | 
|   98                               const scoped_refptr<DecoderBuffer>& buffer); |  | 
|   99  |  | 
|  100   // Carries out the buffer decrypting/decoding operation scheduled by |  | 
|  101   // DecryptAndDecodeBuffer(). |  | 
|  102   void DoDecryptAndDecodeBuffer(DemuxerStream::Status status, |   97   void DoDecryptAndDecodeBuffer(DemuxerStream::Status status, | 
|  103                                 const scoped_refptr<DecoderBuffer>& buffer); |   98                                 const scoped_refptr<DecoderBuffer>& buffer); | 
|  104  |   99  | 
|  105   void DecodePendingBuffer(); |  100   void DecodePendingBuffer(); | 
|  106  |  101  | 
|  107   // Callback for Decryptor::DecryptAndDecodeVideo(). |  102   // Callback for Decryptor::DecryptAndDecodeVideo(). | 
|  108   void DeliverFrame(int buffer_size, |  103   void DeliverFrame(int buffer_size, | 
|  109                     Decryptor::Status status, |  104                     Decryptor::Status status, | 
|  110                     const scoped_refptr<VideoFrame>& frame); |  105                     const scoped_refptr<VideoFrame>& frame); | 
|  111  |  106  | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  157   // A unique ID to trace Decryptor::DecryptAndDecodeVideo() call and the |  152   // A unique ID to trace Decryptor::DecryptAndDecodeVideo() call and the | 
|  158   // matching DecryptCB call (in DoDeliverFrame()). |  153   // matching DecryptCB call (in DoDeliverFrame()). | 
|  159   uint32 trace_id_; |  154   uint32 trace_id_; | 
|  160  |  155  | 
|  161   DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder); |  156   DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder); | 
|  162 }; |  157 }; | 
|  163  |  158  | 
|  164 }  // namespace media |  159 }  // namespace media | 
|  165  |  160  | 
|  166 #endif  // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ |  161 #endif  // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ | 
| OLD | NEW |