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

Unified Diff: media/filters/pipeline_controller.h

Issue 2618883002: [Media, Video] Enable the video track for a new renderer. (Closed)
Patch Set: Fixed debug tests Created 3 years, 11 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
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.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..5ce63413ae4296ce3b04ccd4c0673fc3c90ea28e 100644
--- a/media/filters/pipeline_controller.h
+++ b/media/filters/pipeline_controller.h
@@ -41,19 +41,25 @@ class MEDIA_EXPORT PipelineController {
using RendererFactoryCB = base::Callback<std::unique_ptr<Renderer>(void)>;
using SeekedCB = base::Callback<void(bool time_updated)>;
using SuspendedCB = base::Callback<void()>;
+ using BeforeResumeCB = base::Callback<void()>;
+ using ResumedCB = base::Callback<void()>;
// Construct a PipelineController wrapping |pipeline_|. |pipeline_| must
// outlive the resulting PipelineController. The callbacks are:
// - |renderer_factory_cb| is called by PipelineController to create new
// renderers when starting and resuming.
// - |seeked_cb| is called upon reaching a stable state if a seek occured.
- // - |suspended_cb| is called immediately after suspendeding.
+ // - |suspended_cb| is called immediately after suspending.
+ // - |before_resume_cb| is called immediately before resuming.
+ // - |resumed_cb| is called immediately after resuming.
// - |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 SeekedCB& seeked_cb,
const SuspendedCB& suspended_cb,
+ const BeforeResumeCB& before_resume_cb,
+ const ResumedCB& resumed_cb,
const PipelineStatusCB& error_cb);
~PipelineController();
@@ -123,6 +129,12 @@ class MEDIA_EXPORT PipelineController {
// Called immediately when |pipeline_| completes a suspend operation.
SuspendedCB suspended_cb_;
+ // Called immediately before |pipeline_| starts a resume operation.
+ ResumedCB before_resume_cb_;
+
+ // Called immediately when |pipeline_| completes a resume operation.
+ ResumedCB resumed_cb_;
+
// Called immediately when any operation on |pipeline_| results in an error.
PipelineStatusCB error_cb_;
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/filters/pipeline_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698