| Index: media/mojo/services/mojo_cdm_factory_service.h
|
| diff --git a/media/mojo/services/mojo_cdm_factory_service.h b/media/mojo/services/mojo_cdm_factory_service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4191e36ca39e559cd837e13d7df84d1ac9292685
|
| --- /dev/null
|
| +++ b/media/mojo/services/mojo_cdm_factory_service.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
|
| +#define MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "media/base/media_export.h"
|
| +#include "media/mojo/interfaces/content_decryption_module_factory.mojom.h"
|
| +#include "mojo/public/cpp/bindings/interface_impl.h"
|
| +
|
| +namespace media {
|
| +
|
| +class MojoCdmServiceContext;
|
| +
|
| +class MEDIA_EXPORT MojoCdmFactoryService
|
| + : public mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> {
|
| + public:
|
| + explicit MojoCdmFactoryService(MojoCdmServiceContext* context);
|
| + ~MojoCdmFactoryService() final;
|
| +
|
| + // mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> implementation.
|
| + void Create(const mojo::String& key_system,
|
| + const mojo::String& security_origin,
|
| + int32_t cdm_id,
|
| + mojo::InterfaceRequest<mojo::ContentDecryptionModule> cdm) final;
|
| +
|
| + private:
|
| + MojoCdmServiceContext* context_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MojoCdmFactoryService);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
|
|
|