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

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android changes Created 5 years, 10 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
Index: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 314d7ee56bee498e3910f9629aae4b57542d205d..8d18a26f30ac7df6945367872fef2fd66cb7994a 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -258,6 +258,10 @@ class WebMediaPlayerAndroid : public blink::WebMediaPlayer,
void OnEncryptedMediaInitData(const std::string& init_data_type,
const std::vector<uint8>& init_data);
+ // Called when a decoder detects that the key needed to decrypt the stream
+ // is not available.
+ void OnWaitingForDecryptionKey();
+
protected:
// Helper method to update the playing state.
void UpdatePlayingState(bool is_playing_);

Powered by Google App Engine
This is Rietveld 408576698