#include "media/base/key_systems.h"
#include <optional>
#include <string>
#include "media/cdm/clear_key_cdm_common.h"
#include "third_party/widevine/cdm/widevine_cdm_common.h"
namespace media {
namespace {
const char kClearKeyKeySystemNameForUMA[] = …;
const char kUnknownKeySystemNameForUMA[] = …;
const char kHardwareSecureForUMA[] = …;
const char kSoftwareSecureForUMA[] = …;
enum KeySystemForUkm { … };
}
std::string GetKeySystemNameForUMA(const std::string& key_system,
std::optional<bool> use_hw_secure_codecs) { … }
MEDIA_EXPORT int GetKeySystemIntForUKM(const std::string& key_system) { … }
}