#include "media/base/cdm_promise_adapter.h"
#include <utility>
#include "base/trace_event/trace_event.h"
namespace media {
namespace {
CdmPromise::SystemCode ToSystemCode(CdmPromiseAdapter::ClearReason reason) { … }
}
CdmPromiseAdapter::CdmPromiseAdapter() = default;
CdmPromiseAdapter::~CdmPromiseAdapter() { … }
uint32_t CdmPromiseAdapter::SavePromise(std::unique_ptr<CdmPromise> promise,
const std::string& operation) { … }
template <typename... T>
void CdmPromiseAdapter::ResolvePromise(uint32_t promise_id,
const T&... result) { … }
void CdmPromiseAdapter::RejectPromise(uint32_t promise_id,
CdmPromise::Exception exception_code,
uint32_t system_code,
const std::string& error_message) { … }
void CdmPromiseAdapter::Clear(ClearReason reason) { … }
std::unique_ptr<CdmPromise> CdmPromiseAdapter::TakePromise(
uint32_t promise_id) { … }
template MEDIA_EXPORT void CdmPromiseAdapter::ResolvePromise(uint32_t);
template MEDIA_EXPORT void CdmPromiseAdapter::ResolvePromise(
uint32_t,
const CdmKeyInformation::KeyStatus&);
template MEDIA_EXPORT void CdmPromiseAdapter::ResolvePromise(
uint32_t,
const std::string&);
}