| Index: media/mojo/services/mojo_cdm_service.h
|
| diff --git a/media/mojo/services/mojo_cdm_service.h b/media/mojo/services/mojo_cdm_service.h
|
| index 770b4b8f44170d68e3a5c7cae8eaa9b813bbed74..1e4278c775ff9e94000c899e43a075dcdf9a1bee 100644
|
| --- a/media/mojo/services/mojo_cdm_service.h
|
| +++ b/media/mojo/services/mojo_cdm_service.h
|
| @@ -13,6 +13,10 @@
|
| #include "media/mojo/interfaces/content_decryption_module.mojom.h"
|
| #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
|
|
|
| +namespace mojo {
|
| +class AppRefCount;
|
| +}
|
| +
|
| namespace media {
|
|
|
| class MojoCdmServiceContext;
|
| @@ -21,8 +25,9 @@ class MojoCdmServiceContext;
|
| class MojoCdmService : public mojo::ContentDecryptionModule {
|
| public:
|
| // Constructs a MojoCdmService and strongly binds it to the |request|.
|
| - MojoCdmService(MojoCdmServiceContext* context,
|
| - mojo::InterfaceRequest<mojo::ContentDecryptionModule> request);
|
| + MojoCdmService(mojo::InterfaceRequest<mojo::ContentDecryptionModule> request,
|
| + MojoCdmServiceContext* context,
|
| + scoped_ptr<mojo::AppRefCount> parent_app_refcount);
|
|
|
| ~MojoCdmService() final;
|
|
|
| @@ -81,6 +86,7 @@ class MojoCdmService : public mojo::ContentDecryptionModule {
|
| mojo::StrongBinding<mojo::ContentDecryptionModule> binding_;
|
|
|
| MojoCdmServiceContext* context_;
|
| + scoped_ptr<mojo::AppRefCount> parent_app_refcount_;
|
| scoped_ptr<MediaKeys> cdm_;
|
|
|
| // Set to a valid CDM ID if the |cdm_| is successfully created.
|
|
|