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 21 matching lines...) Expand all Loading... |
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 virtual int GetBitrate() OVERRIDE; |
| 42 virtual bool IsLocalSource() OVERRIDE; |
| 43 virtual bool IsSeekable() OVERRIDE; |
42 | 44 |
43 // Methods used by an external object to control this demuxer. | 45 // Methods used by an external object to control this demuxer. |
44 void FlushData(); | 46 void FlushData(); |
45 | 47 |
46 // Appends media data to the stream. Returns false if this method | 48 // Appends media data to the stream. Returns false if this method |
47 // is called in an invalid state. | 49 // is called in an invalid state. |
48 bool AppendData(const uint8* data, size_t length); | 50 bool AppendData(const uint8* data, size_t length); |
49 void EndOfStream(PipelineStatus status); | 51 void EndOfStream(PipelineStatus status); |
50 bool HasEnded(); | 52 bool HasEnded(); |
51 void Shutdown(); | 53 void Shutdown(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool seek_waits_for_data_; | 125 bool seek_waits_for_data_; |
124 | 126 |
125 ByteQueue byte_queue_; | 127 ByteQueue byte_queue_; |
126 | 128 |
127 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 129 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
128 }; | 130 }; |
129 | 131 |
130 } // namespace media | 132 } // namespace media |
131 | 133 |
132 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 134 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |