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

Unified Diff: media/base/video_renderer.h

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: media/base/video_renderer.h
diff --git a/media/base/video_renderer.h b/media/base/video_renderer.h
index 1e4433323e6c0bcf3fcafe0b8d365f4ad111b040..3419ca63fa557f125cbe2b79558252d00f92adfd 100644
--- a/media/base/video_renderer.h
+++ b/media/base/video_renderer.h
@@ -53,15 +53,20 @@ class MEDIA_EXPORT VideoRenderer {
// |error_cb| is executed if an error was encountered after initialization.
//
// |get_time_cb| is used to query the current media playback time.
- virtual void Initialize(DemuxerStream* stream,
- const PipelineStatusCB& init_cb,
- const SetDecryptorReadyCB& set_decryptor_ready_cb,
- const StatisticsCB& statistics_cb,
- const BufferingStateCB& buffering_state_cb,
- const PaintCB& paint_cb,
- const base::Closure& ended_cb,
- const PipelineStatusCB& error_cb,
- const TimeDeltaCB& get_time_cb) = 0;
+ //
+ // |waiting_for_encryption_key_cb| is executed whenever the stream needs
ddorwin 2015/02/19 05:33:17 dittos
jrummell 2015/02/23 22:06:32 Done.
+ // a new key provided in order to decrypt the data.
+ virtual void Initialize(
+ DemuxerStream* stream,
+ const PipelineStatusCB& init_cb,
+ const SetDecryptorReadyCB& set_decryptor_ready_cb,
+ const StatisticsCB& statistics_cb,
+ const BufferingStateCB& buffering_state_cb,
+ const PaintCB& paint_cb,
+ const base::Closure& ended_cb,
+ const PipelineStatusCB& error_cb,
+ const TimeDeltaCB& get_time_cb,
+ const base::Closure& waiting_for_encryption_key_cb) = 0;
// Discards any video data and stops reading from |stream|, executing
// |callback| when completed.

Powered by Google App Engine
This is Rietveld 408576698