#include "media/mojo/services/cdm_service_broker.h"
#include <utility>
#include "base/logging.h"
#include "build/build_config.h"
#include "media/cdm/cdm_module.h"
#include "media/media_buildflags.h"
#if BUILDFLAG(IS_MAC)
#include <vector>
#include "sandbox/mac/seatbelt_extension.h"
#endif
#if BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION)
#include "media/cdm/cdm_host_file.h"
#endif
namespace media {
CdmServiceBroker::CdmServiceBroker(
std::unique_ptr<CdmService::Client> client,
mojo::PendingReceiver<mojom::CdmServiceBroker> receiver)
: … { … }
CdmServiceBroker::~CdmServiceBroker() = default;
void CdmServiceBroker::GetService(
const base::FilePath& cdm_path,
#if BUILDFLAG(IS_MAC)
mojo::PendingRemote<mojom::SeatbeltExtensionTokenProvider> token_provider,
#endif
mojo::PendingReceiver<mojom::CdmService> service_receiver) { … }
bool CdmServiceBroker::InitializeAndEnsureSandboxed(
#if BUILDFLAG(IS_MAC)
mojo::PendingRemote<mojom::SeatbeltExtensionTokenProvider> token_provider,
#endif
const base::FilePath& cdm_path) { … }
}