#include "third_party/blink/renderer/modules/encryptedmedia/media_key_system_access_initializer_base.h"
#include "base/metrics/histogram_functions.h"
#include "media/base/eme_constants.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_media_key_system_media_capability.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/encryptedmedia/encrypted_media_utils.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/network/parsed_content_type.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
namespace blink {
namespace {
static WebVector<media::EmeInitDataType> ConvertInitDataTypes(
const Vector<String>& init_data_types) { … }
static WebMediaKeySystemMediaCapability::EncryptionScheme
ConvertEncryptionScheme(const String& encryption_scheme) { … }
static WebVector<WebMediaKeySystemMediaCapability> ConvertCapabilities(
const HeapVector<Member<MediaKeySystemMediaCapability>>& capabilities) { … }
static WebVector<WebEncryptedMediaSessionType> ConvertSessionTypes(
const Vector<String>& session_types) { … }
}
MediaKeySystemAccessInitializerBase::MediaKeySystemAccessInitializerBase(
ExecutionContext* context,
ScriptPromiseResolverBase* resolver,
const String& key_system,
const HeapVector<Member<MediaKeySystemConfiguration>>&
supported_configurations,
bool is_from_media_capabilities)
: … { … }
const SecurityOrigin* MediaKeySystemAccessInitializerBase::GetSecurityOrigin()
const { … }
void MediaKeySystemAccessInitializerBase::Trace(Visitor* visitor) const { … }
bool MediaKeySystemAccessInitializerBase::IsExecutionContextValid() const { … }
void MediaKeySystemAccessInitializerBase::GenerateWarningAndReportMetrics()
const { … }
}