namespace media {
class MediaKeys;
+class DemuxerStreamProvider;
class MEDIA_EXPORT Renderer {
public:
// Stops rendering and fires any pending callbacks.
virtual ~Renderer();
- // Initializes the Renderer, executing |init_cb| upon completion.
- // If initialization failed, fires |error_cb| before |init_cb|.
+ // Initializes the Renderer with |demuxer_stream_provider|, executing
+ // |init_cb| upon completion. If initialization failed, fires |error_cb|
+ // before |init_cb|. |demuxer_stream_provider| must be valid throughout the
+ // lifetime of the Renderer object.
//
// Permanent callbacks:
// - |statistics_cb|: Executed periodically with rendering statistics.
// - |time_cb|: Executed whenever time has advanced through rendering.
// - |ended_cb|: Executed when rendering has reached the end of stream.
// - |error_cb|: Executed if any error was encountered during rendering.
- virtual void Initialize(const base::Closure& init_cb,
+ virtual void Initialize(DemuxerStreamProvider* demuxer_stream_provider,
+ const base::Closure& init_cb,
const StatisticsCB& statistics_cb,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,