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

Unified Diff: content/renderer/media/android/media_source_delegate.cc

Issue 759933003: Move OnNeedKey() to WebMediaPlayerImpl. (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.cc
diff --git a/content/renderer/media/android/media_source_delegate.cc b/content/renderer/media/android/media_source_delegate.cc
index 3422fc9aa7a0868529d68c15dce3fe349eb2e49b..c5229c4c4a755370b571da5dbfc1979e723ad5f4 100644
--- a/content/renderer/media/android/media_source_delegate.cc
+++ b/content/renderer/media/android/media_source_delegate.cc
@@ -667,13 +667,13 @@ void MediaSourceDelegate::OnDemuxerOpened() {
chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_)));
}
-void MediaSourceDelegate::OnNeedKey(const std::string& type,
+void MediaSourceDelegate::OnNeedKey(const std::string& init_data_type,
const std::vector<uint8>& init_data) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
if (need_key_cb_.is_null())
return;
- need_key_cb_.Run(type, init_data);
+ need_key_cb_.Run(init_data_type, init_data);
}
bool MediaSourceDelegate::IsSeeking() const {
« no previous file with comments | « content/renderer/media/android/media_source_delegate.h ('k') | content/renderer/media/android/webmediaplayer_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698