#include "media/mojo/services/mojo_cdm_promise.h"
#include <string>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/functional/bind.h"
#include "media/base/content_decryption_module.h"
#include "media/base/decryptor.h"
#include "media/mojo/mojom/content_decryption_module.mojom.h"
namespace media {
static mojom::CdmPromiseResultPtr GetRejectResult(
CdmPromise::Exception exception,
uint32_t system_code,
const std::string& error_message) { … }
template <typename F, typename... T>
MojoCdmPromise<F, T...>::MojoCdmPromise(CallbackType callback)
: … { … }
template <typename F, typename... T>
MojoCdmPromise<F, T...>::~MojoCdmPromise() { … }
template <typename F, typename... T>
void MojoCdmPromise<F, T...>::resolve(const T&... result) { … }
template <typename F, typename... T>
void MojoCdmPromise<F, T...>::reject(CdmPromise::Exception exception,
uint32_t system_code,
const std::string& error_message) { … }
template class MojoCdmPromise<void(mojom::CdmPromiseResultPtr)>;
template class MojoCdmPromise<void(mojom::CdmPromiseResultPtr,
CdmKeyInformation::KeyStatus),
CdmKeyInformation::KeyStatus>;
template class MojoCdmPromise<void(mojom::CdmPromiseResultPtr,
const std::string&),
std::string>;
}