OLD | NEW |
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 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Returns true if all streams can successfully call EndOfStream, | 109 // Returns true if all streams can successfully call EndOfStream, |
110 // false if any can not. | 110 // false if any can not. |
111 bool CanEndOfStream_Locked() const; | 111 bool CanEndOfStream_Locked() const; |
112 | 112 |
113 // StreamParser callbacks. | 113 // StreamParser callbacks. |
114 void OnStreamParserInitDone(bool success, base::TimeDelta duration); | 114 void OnStreamParserInitDone(bool success, base::TimeDelta duration); |
115 bool OnNewConfigs(const AudioDecoderConfig& audio_config, | 115 bool OnNewConfigs(const AudioDecoderConfig& audio_config, |
116 const VideoDecoderConfig& video_config); | 116 const VideoDecoderConfig& video_config); |
117 bool OnAudioBuffers(const StreamParser::BufferQueue& buffers); | 117 bool OnAudioBuffers(const StreamParser::BufferQueue& buffers); |
118 bool OnVideoBuffers(const StreamParser::BufferQueue& buffers); | 118 bool OnVideoBuffers(const StreamParser::BufferQueue& buffers); |
119 bool OnKeyNeeded(scoped_array<uint8> init_data, int init_data_size); | 119 bool OnNeedKey(scoped_array<uint8> init_data, int init_data_size); |
120 | 120 |
121 mutable base::Lock lock_; | 121 mutable base::Lock lock_; |
122 State state_; | 122 State state_; |
123 | 123 |
124 DemuxerHost* host_; | 124 DemuxerHost* host_; |
125 ChunkDemuxerClient* client_; | 125 ChunkDemuxerClient* client_; |
126 PipelineStatusCB init_cb_; | 126 PipelineStatusCB init_cb_; |
127 PipelineStatusCB seek_cb_; | 127 PipelineStatusCB seek_cb_; |
128 | 128 |
129 scoped_refptr<ChunkDemuxerStream> audio_; | 129 scoped_refptr<ChunkDemuxerStream> audio_; |
(...skipping 12 matching lines...) Expand all Loading... |
142 | 142 |
143 // TODO(acolwell): Remove this when fixing http://crbug.com/122909 | 143 // TODO(acolwell): Remove this when fixing http://crbug.com/122909 |
144 std::string source_id_; | 144 std::string source_id_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 146 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace media | 149 } // namespace media |
150 | 150 |
151 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 151 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |