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

Unified Diff: content/renderer/media/android/media_source_delegate.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
Index: content/renderer/media/android/media_source_delegate.h
diff --git a/content/renderer/media/android/media_source_delegate.h b/content/renderer/media/android/media_source_delegate.h
index e4d9e85efb208464a6fe765fa85fe3762bb927a8..963237a93d0c5d1f2349b2dfd49baf771b386b02 100644
--- a/content/renderer/media/android/media_source_delegate.h
+++ b/content/renderer/media/android/media_source_delegate.h
@@ -58,7 +58,8 @@ class MediaSourceDelegate : public media::DemuxerHost {
// this object after this call.
void InitializeMediaSource(
const MediaSourceOpenedCB& media_source_opened_cb,
- const media::Demuxer::NeedKeyCB& need_key_cb,
+ const media::Demuxer::EncryptedMediaInitDataCB&
+ encrypted_media_init_data_cb,
const media::SetDecryptorReadyCB& set_decryptor_ready_cb,
const UpdateNetworkStateCB& update_network_state_cb,
const DurationChangeCB& duration_change_cb);
@@ -136,8 +137,8 @@ class MediaSourceDelegate : public media::DemuxerHost {
void FinishResettingDecryptingDemuxerStreams();
void OnDemuxerOpened();
- void OnNeedKey(const std::string& init_data_type,
- const std::vector<uint8>& init_data);
+ void OnEncryptedMediaInitData(const std::string& init_data_type,
+ const std::vector<uint8>& init_data);
void NotifyDemuxerReady();
// Stops and clears objects on the media thread.
@@ -196,7 +197,7 @@ class MediaSourceDelegate : public media::DemuxerHost {
media::Ranges<base::TimeDelta> buffered_time_ranges_;
MediaSourceOpenedCB media_source_opened_cb_;
- media::Demuxer::NeedKeyCB need_key_cb_;
+ media::Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
// Temporary for EME v0.1. In the future the init data type should be passed
// through GenerateKeyRequest() directly from WebKit.
« no previous file with comments | « chromecast/media/cma/test/frame_segmenter_for_test.cc ('k') | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698