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

Unified Diff: media/filters/pipeline_controller.h

Issue 2564253002: Notify HTMLMediaElement when media pipeline init has finished
Patch Set: Created 4 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
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/pipeline_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/pipeline_controller.h
diff --git a/media/filters/pipeline_controller.h b/media/filters/pipeline_controller.h
index 4c2a70f7f8e55c90b41515416d325527728b549b..d172d46172bf3e7725ff3321ace8fcf28f75de29 100644
--- a/media/filters/pipeline_controller.h
+++ b/media/filters/pipeline_controller.h
@@ -46,12 +46,15 @@ class MEDIA_EXPORT PipelineController {
// outlive the resulting PipelineController. The callbacks are:
// - |renderer_factory_cb| is called by PipelineController to create new
// renderers when starting and resuming.
+ // - |start_done_cb| is called when the pipeline has finished the async
+ // start operation either successfully or unsuccessfully.
// - |seeked_cb| is called upon reaching a stable state if a seek occured.
// - |suspended_cb| is called immediately after suspendeding.
// - |error_cb| is called if any operation on |pipeline_| does not result
// in PIPELINE_OK or its error callback is called.
PipelineController(Pipeline* pipeline,
const RendererFactoryCB& renderer_factory_cb,
+ const PipelineStatusCB& start_done_cb,
const SeekedCB& seeked_cb,
const SuspendedCB& suspended_cb,
const PipelineStatusCB& error_cb);
@@ -115,6 +118,9 @@ class MEDIA_EXPORT PipelineController {
// Factory for Renderers, used for Start() and Resume().
RendererFactoryCB renderer_factory_cb_;
+ // Called when Pipeline::Start is completed.
+ PipelineStatusCB start_done_cb_;
+
// Called after seeks (which includes Start()) upon reaching a stable state.
// Multiple seeks result in only one callback if no stable state occurs
// between them.
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/pipeline_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698