Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / media / base / renderer.h
index af02ba5..78ae043 100644 (file)
@@ -14,6 +14,7 @@
 namespace media {
 
 class MediaKeys;
+class DemuxerStreamProvider;
 
 class MEDIA_EXPORT Renderer {
  public:
@@ -24,15 +25,18 @@ class MEDIA_EXPORT Renderer {
   // 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,