| Index: media/filters/pipeline_controller.h
|
| diff --git a/media/filters/pipeline_controller.h b/media/filters/pipeline_controller.h
|
| index 4c2a70f7f8e55c90b41515416d325527728b549b..377e886e3987f278439363ff606ee82611760e0a 100644
|
| --- a/media/filters/pipeline_controller.h
|
| +++ b/media/filters/pipeline_controller.h
|
| @@ -41,19 +41,22 @@ 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 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.
|
| + // - |resumed_cb| is called upon reaching a stable state 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 ResumedCB& resumed_cb,
|
| const PipelineStatusCB& error_cb);
|
| ~PipelineController();
|
|
|
| @@ -123,6 +126,9 @@ class MEDIA_EXPORT PipelineController {
|
| // Called immediately when |pipeline_| completes a suspend operation.
|
| SuspendedCB suspended_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_;
|
|
|
| @@ -144,6 +150,10 @@ class MEDIA_EXPORT PipelineController {
|
| // issued at the next stable state.
|
| bool pending_seeked_cb_ = false;
|
|
|
| + // Indicates that a resume has occurred. When set, a resumed callback will be
|
| + // issued at the next stable state.
|
| + bool pending_resumed_cb_ = false;
|
| +
|
| // Indicates that time has been changed by a seek, which will be reported at
|
| // the next seeked callback.
|
| bool pending_time_updated_ = false;
|
|
|