#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_MEDIA_CDM_RESULT_PROMISE_HELPER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_MEDIA_CDM_RESULT_PROMISE_HELPER_H_
#include <string>
#include "media/base/cdm_key_information.h"
#include "media/base/cdm_promise.h"
#include "third_party/blink/public/platform/web_content_decryption_module_result.h"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace blink {
enum CdmResultForUMA { … };
PLATFORM_EXPORT CdmResultForUMA
ConvertCdmExceptionToResultForUMA(media::CdmPromise::Exception exception_code);
PLATFORM_EXPORT WebContentDecryptionModuleException
ConvertCdmException(media::CdmPromise::Exception exception_code);
PLATFORM_EXPORT WebEncryptedMediaKeyInformation::KeyStatus ConvertCdmKeyStatus(
media::CdmKeyInformation::KeyStatus key_status);
PLATFORM_EXPORT void ReportCdmResultUMA(const std::string& uma_name,
uint32_t system_code,
CdmResultForUMA result);
}
#endif