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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 784493002: Encrypted Media: Rename NeedKey to EncryptedMediaInitData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years 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/filters/chunk_demuxer_unittest.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 76d0fbb0fd5c7014e083b086c52bfa6a0d183713..bcb7c316f9296f21f2fbb81edd7eadff5839283c 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -164,7 +164,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
public:
FFmpegDemuxer(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
DataSource* data_source,
- const NeedKeyCB& need_key_cb,
+ const EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
const scoped_refptr<MediaLog>& media_log);
~FFmpegDemuxer() override;
@@ -178,9 +178,10 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
DemuxerStream* GetStream(DemuxerStream::Type type) override;
base::TimeDelta GetStartTime() const override;
- // Calls |need_key_cb_| with the initialization data encountered in the file.
- void FireNeedKey(const std::string& init_data_type,
- const std::string& encryption_key_id);
+ // Calls |encrypted_media_init_data_cb_| with the initialization data
+ // encountered in the file.
+ void OnEncryptedMediaInitData(const std::string& init_data_type,
+ const std::string& encryption_key_id);
// Allow FFmpegDemuxerStream to notify us when there is updated information
// about capacity and what buffered data is available.
@@ -299,7 +300,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
scoped_ptr<BlockingUrlProtocol> url_protocol_;
scoped_ptr<FFmpegGlue> glue_;
- const NeedKeyCB need_key_cb_;
+ const EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<FFmpegDemuxer> weak_factory_;
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698