| 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 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Demuxer implementation. | 32 // Demuxer implementation. |
| 33 virtual void set_host(FilterHost* filter_host) OVERRIDE; | 33 virtual void set_host(FilterHost* filter_host) OVERRIDE; |
| 34 virtual void Stop(const base::Closure& callback) OVERRIDE; | 34 virtual void Stop(const base::Closure& callback) OVERRIDE; |
| 35 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; | 35 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; |
| 36 virtual void OnAudioRendererDisabled() OVERRIDE; | 36 virtual void OnAudioRendererDisabled() OVERRIDE; |
| 37 virtual scoped_refptr<DemuxerStream> GetStream( | 37 virtual scoped_refptr<DemuxerStream> GetStream( |
| 38 DemuxerStream::Type type) OVERRIDE; | 38 DemuxerStream::Type type) OVERRIDE; |
| 39 virtual void SetPreload(Preload preload) OVERRIDE; | 39 virtual void SetPreload(Preload preload) OVERRIDE; |
| 40 virtual base::TimeDelta GetStartTime() const OVERRIDE; | 40 virtual base::TimeDelta GetStartTime() const OVERRIDE; |
| 41 virtual int GetBitrate() OVERRIDE; |
| 41 | 42 |
| 42 // Methods used by an external object to control this demuxer. | 43 // Methods used by an external object to control this demuxer. |
| 43 void FlushData(); | 44 void FlushData(); |
| 44 | 45 |
| 45 // Appends media data to the stream. Returns false if this method | 46 // Appends media data to the stream. Returns false if this method |
| 46 // is called in an invalid state. | 47 // is called in an invalid state. |
| 47 bool AppendData(const uint8* data, size_t length); | 48 bool AppendData(const uint8* data, size_t length); |
| 48 void EndOfStream(PipelineStatus status); | 49 void EndOfStream(PipelineStatus status); |
| 49 bool HasEnded(); | 50 bool HasEnded(); |
| 50 void Shutdown(); | 51 void Shutdown(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 bool seek_waits_for_data_; | 123 bool seek_waits_for_data_; |
| 123 | 124 |
| 124 ByteQueue byte_queue_; | 125 ByteQueue byte_queue_; |
| 125 | 126 |
| 126 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 127 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace media | 130 } // namespace media |
| 130 | 131 |
| 131 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 132 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |