#include "third_party/blink/renderer/modules/encryptedmedia/encrypted_media_utils.h"
#include "base/notreached.h"
#include "media/base/eme_constants.h"
#include "media/base/key_systems.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "third_party/blink/public/web/web_local_frame_client.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
namespace blink {
namespace {
const char kTemporary[] = …;
const char kPersistentLicense[] = …;
}
media::EmeInitDataType EncryptedMediaUtils::ConvertToInitDataType(
const String& init_data_type) { … }
String EncryptedMediaUtils::ConvertFromInitDataType(
media::EmeInitDataType init_data_type) { … }
WebEncryptedMediaSessionType EncryptedMediaUtils::ConvertToSessionType(
const String& session_type) { … }
String EncryptedMediaUtils::ConvertFromSessionType(
WebEncryptedMediaSessionType session_type) { … }
String EncryptedMediaUtils::ConvertKeyStatusToString(
const WebEncryptedMediaKeyInformation::KeyStatus status) { … }
V8MediaKeyStatus EncryptedMediaUtils::ConvertKeyStatusToEnum(
const WebEncryptedMediaKeyInformation::KeyStatus status) { … }
WebMediaKeySystemConfiguration::Requirement
EncryptedMediaUtils::ConvertToMediaKeysRequirement(const String& requirement) { … }
String EncryptedMediaUtils::ConvertMediaKeysRequirementToString(
WebMediaKeySystemConfiguration::Requirement requirement) { … }
WebEncryptedMediaClient*
EncryptedMediaUtils::GetEncryptedMediaClientFromLocalDOMWindow(
LocalDOMWindow* window) { … }
void EncryptedMediaUtils::ReportUsage(EmeApiType api_type,
ExecutionContext* execution_context,
const String& key_system,
bool use_hardware_secure_codecs,
bool is_persistent_session) { … }
}