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

Unified Diff: media/filters/chunk_demuxer.h

Issue 10905236: Move ChunkDemuxer handling from WMPProxy to WMPI and remove ChunkDemuxerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/ffmpeg/ffmpeg_regression_tests.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index a6118497ea35c41aa64d08236e5689f600ff4677..3ec8160ff593a906e8d1470ccb92da78bdca23de 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -19,7 +19,6 @@
namespace media {
-class ChunkDemuxerClient;
class ChunkDemuxerStream;
class FFmpegURLProtocol;
@@ -33,7 +32,14 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
kReachedIdLimit, // Reached ID limit. We can't handle any more IDs.
};
- explicit ChunkDemuxer(ChunkDemuxerClient* client);
+ typedef base::Callback<void(scoped_array<uint8> init_data,
+ int init_data_size)> NeedKeyCB;
+
+ // |open_cb| Run when Initialize() is called to signal that the demuxer
+ // is ready to receive media data via AppenData().
+ // |need_key_cb| Run when the demuxer determines that an encryption key is
+ // needed to decrypt the content.
+ ChunkDemuxer(const base::Closure& open_cb, const NeedKeyCB& need_key_cb);
// Demuxer implementation.
virtual void Initialize(DemuxerHost* host,
@@ -160,7 +166,9 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
State state_;
DemuxerHost* host_;
- ChunkDemuxerClient* client_;
+ base::Closure open_cb_;
+ NeedKeyCB need_key_cb_;
+
PipelineStatusCB init_cb_;
PipelineStatusCB seek_cb_;
« no previous file with comments | « media/ffmpeg/ffmpeg_regression_tests.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698