| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // DemuxerStream implementation. | 48 // DemuxerStream implementation. |
| 49 void Read(const ReadCB& read_cb) override; | 49 void Read(const ReadCB& read_cb) override; |
| 50 AudioDecoderConfig audio_decoder_config() override; | 50 AudioDecoderConfig audio_decoder_config() override; |
| 51 VideoDecoderConfig video_decoder_config() override; | 51 VideoDecoderConfig video_decoder_config() override; |
| 52 Type type() const override; | 52 Type type() const override; |
| 53 Liveness liveness() const override; | 53 Liveness liveness() const override; |
| 54 void EnableBitstreamConverter() override; | 54 void EnableBitstreamConverter() override; |
| 55 bool SupportsConfigChanges() override; | 55 bool SupportsConfigChanges() override; |
| 56 VideoRotation video_rotation() override; | 56 VideoRotation video_rotation() override; |
| 57 int GetMemoryLimit() const override; |
| 58 void SetMemoryLimit(int memory_limit) override; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 // For a detailed state diagram please see this link: http://goo.gl/8jAok | 61 // For a detailed state diagram please see this link: http://goo.gl/8jAok |
| 60 // TODO(xhwang): Add a ASCII state diagram in this file after this class | 62 // TODO(xhwang): Add a ASCII state diagram in this file after this class |
| 61 // stabilizes. | 63 // stabilizes. |
| 62 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. | 64 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. |
| 63 enum State { | 65 enum State { |
| 64 kUninitialized = 0, | 66 kUninitialized = 0, |
| 65 kDecryptorRequested, | 67 kDecryptorRequested, |
| 66 kIdle, | 68 kIdle, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 131 |
| 130 base::WeakPtr<DecryptingDemuxerStream> weak_this_; | 132 base::WeakPtr<DecryptingDemuxerStream> weak_this_; |
| 131 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; | 133 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); | 135 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace media | 138 } // namespace media |
| 137 | 139 |
| 138 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ | 140 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ |
| OLD | NEW |