| 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_DEMUXER_STREAM_H_ | 5 #ifndef MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ |
| 6 #define MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ | 6 #define MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_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 "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // (e.g. PpapiDecryptor), the pending DecryptCB would not be satisfied. | 49 // (e.g. PpapiDecryptor), the pending DecryptCB would not be satisfied. |
| 50 void Stop(const base::Closure& closure); | 50 void Stop(const base::Closure& closure); |
| 51 | 51 |
| 52 // DemuxerStream implementation. | 52 // DemuxerStream implementation. |
| 53 virtual void Read(const ReadCB& read_cb) OVERRIDE; | 53 virtual void Read(const ReadCB& read_cb) OVERRIDE; |
| 54 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; | 54 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; |
| 55 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; | 55 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; |
| 56 virtual Type type() OVERRIDE; | 56 virtual Type type() OVERRIDE; |
| 57 virtual void EnableBitstreamConverter() OVERRIDE; | 57 virtual void EnableBitstreamConverter() OVERRIDE; |
| 58 virtual bool SupportsConfigChanges() OVERRIDE; | 58 virtual bool SupportsConfigChanges() OVERRIDE; |
| 59 virtual VideoRotation video_rotation() OVERRIDE; |
| 60 virtual void set_video_rotation(VideoRotation video_rotation) OVERRIDE; |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 // For a detailed state diagram please see this link: http://goo.gl/8jAok | 63 // For a detailed state diagram please see this link: http://goo.gl/8jAok |
| 62 // TODO(xhwang): Add a ASCII state diagram in this file after this class | 64 // TODO(xhwang): Add a ASCII state diagram in this file after this class |
| 63 // stabilizes. | 65 // stabilizes. |
| 64 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. | 66 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. |
| 65 enum State { | 67 enum State { |
| 66 kUninitialized = 0, | 68 kUninitialized = 0, |
| 67 kDecryptorRequested, | 69 kDecryptorRequested, |
| 68 kIdle, | 70 kIdle, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // NOTE: Weak pointers must be invalidated before all other member variables. | 132 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 131 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; | 133 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; |
| 132 base::WeakPtr<DecryptingDemuxerStream> weak_this_; | 134 base::WeakPtr<DecryptingDemuxerStream> weak_this_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); | 136 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace media | 139 } // namespace media |
| 138 | 140 |
| 139 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ | 141 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ |
| OLD | NEW |