| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Implements the Demuxer interface. DummyDemuxer returns corresponding | 5 // Implements the Demuxer interface. DummyDemuxer returns corresponding |
| 6 // DummyDemuxerStream as signal for media pipeline to construct correct | 6 // DummyDemuxerStream as signal for media pipeline to construct correct |
| 7 // playback channels. | 7 // playback channels. |
| 8 | 8 |
| 9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| 10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 class DummyDemuxer : public Demuxer { | 38 class DummyDemuxer : public Demuxer { |
| 39 public: | 39 public: |
| 40 DummyDemuxer(bool has_video, bool has_audio); | 40 DummyDemuxer(bool has_video, bool has_audio); |
| 41 virtual ~DummyDemuxer(); | 41 virtual ~DummyDemuxer(); |
| 42 | 42 |
| 43 // Demuxer implementation. | 43 // Demuxer implementation. |
| 44 virtual scoped_refptr<DemuxerStream> GetStream( | 44 virtual scoped_refptr<DemuxerStream> GetStream( |
| 45 DemuxerStream::Type type) OVERRIDE; | 45 DemuxerStream::Type type) OVERRIDE; |
| 46 virtual void SetPreload(Preload preload) OVERRIDE; | 46 virtual void SetPreload(Preload preload) OVERRIDE; |
| 47 virtual base::TimeDelta GetStartTime() const OVERRIDE; | 47 virtual base::TimeDelta GetStartTime() const OVERRIDE; |
| 48 virtual int GetBitrate() OVERRIDE; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 bool has_video_; | 51 bool has_video_; |
| 51 bool has_audio_; | 52 bool has_audio_; |
| 52 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; | 53 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); | 55 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace media | 58 } // namespace media |
| 58 | 59 |
| 59 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 60 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| OLD | NEW |