Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Side by Side Diff: media/filters/chunk_demuxer.h

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved preload into a separate file. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
23 // Demuxer implementation that allows chunks of WebM media data to be passed 23 // Demuxer implementation that allows chunks of WebM media data to be passed
24 // from JavaScript to the media stack. 24 // from JavaScript to the media stack.
25 class MEDIA_EXPORT ChunkDemuxer : public Demuxer { 25 class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
26 public: 26 public:
27 explicit ChunkDemuxer(ChunkDemuxerClient* client); 27 explicit ChunkDemuxer(ChunkDemuxerClient* client);
28 virtual ~ChunkDemuxer(); 28 virtual ~ChunkDemuxer();
29 29
30 void Init(const PipelineStatusCB& cb); 30 void Init(const PipelineStatusCB& cb);
31 31
32 // Demuxer implementation. 32 // Demuxer implementation.
33 virtual void set_host(FilterHost* filter_host) OVERRIDE; 33 virtual void set_host(DemuxerHost* 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; 42 virtual bool IsLocalSource() OVERRIDE;
43 virtual bool IsSeekable() OVERRIDE; 43 virtual bool IsSeekable() OVERRIDE;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool seek_waits_for_data_; 130 bool seek_waits_for_data_;
131 131
132 ByteQueue byte_queue_; 132 ByteQueue byte_queue_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 134 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
135 }; 135 };
136 136
137 } // namespace media 137 } // namespace media
138 138
139 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 139 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/preload.h ('k') | media/filters/chunk_demuxer.cc » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698