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

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

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698