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

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

Issue 10534096: Generalize AesDecryptor to make it more spec compliant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error on Windows. Created 8 years, 6 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(bool has_audio, bool has_video, 115 bool OnNewConfigs(bool has_audio, bool has_video,
116 const AudioDecoderConfig& audio_config, 116 const AudioDecoderConfig& audio_config,
117 const VideoDecoderConfig& video_config); 117 const VideoDecoderConfig& video_config);
118 bool OnAudioBuffers(const StreamParser::BufferQueue& buffers); 118 bool OnAudioBuffers(const StreamParser::BufferQueue& buffers);
119 bool OnVideoBuffers(const StreamParser::BufferQueue& buffers); 119 bool OnVideoBuffers(const StreamParser::BufferQueue& buffers);
120 bool OnKeyNeeded(scoped_array<uint8> init_data, int init_data_size); 120 bool OnNeedKey(scoped_array<uint8> init_data, int init_data_size);
121 121
122 // Helper functions for calculating GetBufferedRanges(). 122 // Helper functions for calculating GetBufferedRanges().
123 bool CopyIntoRanges( 123 bool CopyIntoRanges(
124 const SourceBufferStream::TimespanList& timespans, 124 const SourceBufferStream::TimespanList& timespans,
125 Ranges* ranges_out) const; 125 Ranges* ranges_out) const;
126 void AddIntersectionRange( 126 void AddIntersectionRange(
127 SourceBufferStream::Timespan timespan_a, 127 SourceBufferStream::Timespan timespan_a,
128 SourceBufferStream::Timespan timespan_b, 128 SourceBufferStream::Timespan timespan_b,
129 bool last_range_after_ended, 129 bool last_range_after_ended,
130 Ranges* ranges_out) const; 130 Ranges* ranges_out) const;
(...skipping 21 matching lines...) Expand all
152 // removed with RemoveID() but can not be re-added (yet). 152 // removed with RemoveID() but can not be re-added (yet).
153 std::string source_id_audio_; 153 std::string source_id_audio_;
154 std::string source_id_video_; 154 std::string source_id_video_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 156 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
157 }; 157 };
158 158
159 } // namespace media 159 } // namespace media
160 160
161 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 161 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698