#include "third_party/blink/renderer/platform/media/web_content_decryption_module_access_impl.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/public/platform/media/web_encrypted_media_client_impl.h"
namespace blink {
static void CreateCdm(
const base::WeakPtr<WebEncryptedMediaClientImpl>& client,
const WebSecurityOrigin& security_origin,
const media::CdmConfig& cdm_config,
std::unique_ptr<WebContentDecryptionModuleResult> result) { … }
WebContentDecryptionModuleAccessImpl*
WebContentDecryptionModuleAccessImpl::From(
WebContentDecryptionModuleAccess* cdm_access) { … }
std::unique_ptr<WebContentDecryptionModuleAccessImpl>
WebContentDecryptionModuleAccessImpl::Create(
const WebSecurityOrigin& security_origin,
const WebMediaKeySystemConfiguration& configuration,
const media::CdmConfig& cdm_config,
const base::WeakPtr<WebEncryptedMediaClientImpl>& client) { … }
WebContentDecryptionModuleAccessImpl::WebContentDecryptionModuleAccessImpl(
const WebSecurityOrigin& security_origin,
const WebMediaKeySystemConfiguration& configuration,
const media::CdmConfig& cdm_config,
const base::WeakPtr<WebEncryptedMediaClientImpl>& client)
: … { … }
WebContentDecryptionModuleAccessImpl::~WebContentDecryptionModuleAccessImpl() =
default;
WebString WebContentDecryptionModuleAccessImpl::GetKeySystem() { … }
WebMediaKeySystemConfiguration
WebContentDecryptionModuleAccessImpl::GetConfiguration() { … }
void WebContentDecryptionModuleAccessImpl::CreateContentDecryptionModule(
WebContentDecryptionModuleResult result,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) { … }
bool WebContentDecryptionModuleAccessImpl::UseHardwareSecureCodecs() const { … }
}