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

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

Issue 9864022: Move DataSource::SetPreload() to BufferedDataSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 9 months 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) 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_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 16 matching lines...) Expand all
27 27
28 void Init(const PipelineStatusCB& cb); 28 void Init(const PipelineStatusCB& cb);
29 29
30 // Demuxer implementation. 30 // Demuxer implementation.
31 virtual void set_host(DemuxerHost* host) OVERRIDE; 31 virtual void set_host(DemuxerHost* host) OVERRIDE;
32 virtual void Stop(const base::Closure& callback) OVERRIDE; 32 virtual void Stop(const base::Closure& callback) OVERRIDE;
33 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; 33 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE;
34 virtual void OnAudioRendererDisabled() OVERRIDE; 34 virtual void OnAudioRendererDisabled() OVERRIDE;
35 virtual scoped_refptr<DemuxerStream> GetStream( 35 virtual scoped_refptr<DemuxerStream> GetStream(
36 DemuxerStream::Type type) OVERRIDE; 36 DemuxerStream::Type type) OVERRIDE;
37 virtual void SetPreload(Preload preload) OVERRIDE;
38 virtual base::TimeDelta GetStartTime() const OVERRIDE; 37 virtual base::TimeDelta GetStartTime() const OVERRIDE;
39 virtual int GetBitrate() OVERRIDE; 38 virtual int GetBitrate() OVERRIDE;
40 virtual bool IsLocalSource() OVERRIDE; 39 virtual bool IsLocalSource() OVERRIDE;
41 virtual bool IsSeekable() OVERRIDE; 40 virtual bool IsSeekable() OVERRIDE;
42 41
43 // Methods used by an external object to control this demuxer. 42 // Methods used by an external object to control this demuxer.
44 void FlushData(); 43 void FlushData();
45 44
46 // Appends media data to the stream. Returns false if this method 45 // Appends media data to the stream. Returns false if this method
47 // is called in an invalid state. 46 // is called in an invalid state.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Stores an error that happens after initilization but before set_host(). 98 // Stores an error that happens after initilization but before set_host().
100 // TODO(acolwell): Remove this when http://crbug.com/111585 is fixed. 99 // TODO(acolwell): Remove this when http://crbug.com/111585 is fixed.
101 PipelineStatus deferred_error_; 100 PipelineStatus deferred_error_;
102 101
103 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 102 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
104 }; 103 };
105 104
106 } // namespace media 105 } // namespace media
107 106
108 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 107 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698