| Index: media/base/pipeline_impl.h
|
| diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
|
| index 8a55ed72bc944e9977af006b88a6ab5cfe90a128..679ae29c2a771401591e995c6d2e1e71e30d2e23 100644
|
| --- a/media/base/pipeline_impl.h
|
| +++ b/media/base/pipeline_impl.h
|
| @@ -191,6 +191,9 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
|
| // will be set in |renderer_| later when |renderer_| is created.
|
| void SetCdmTask(CdmContext* cdm_context,
|
| const CdmAttachedCB& cdm_attached_cb);
|
| + void OnCdmAttached(const CdmAttachedCB& cdm_attached_cb,
|
| + CdmContext* cdm_context,
|
| + bool success);
|
|
|
| // Callbacks executed when a renderer has ended.
|
| void OnRendererEnded();
|
| @@ -316,10 +319,12 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public DemuxerHost {
|
|
|
| scoped_ptr<SerialRunner> pending_callbacks_;
|
|
|
| - // CdmContext to be used to decrypt (and decode) encrypted stream in this
|
| - // pipeline. Non-null only when SetCdm() is called and the pipeline has not
|
| - // been started. Then during Start(), this value will be set on |renderer_|.
|
| - CdmContext* pending_cdm_context_;
|
| + // The CdmContext to be used to decrypt (and decode) encrypted stream in this
|
| + // pipeline. It is set when SetCdm() succeeds on the renderer (or when
|
| + // SetCdm() is called before Start()), after which it is guaranteed to outlive
|
| + // this pipeline. The saved value will be used to configure new renderers,
|
| + // when starting or resuming.
|
| + CdmContext* cdm_context_;
|
|
|
| base::ThreadChecker thread_checker_;
|
|
|
|
|