Home | History | Annotate | Download | only in encryptedmedia

Lines Matching refs:ContentType

37 #include "platform/ContentType.h"
47 static bool isKeySystemSupportedWithContentType(const String& keySystem, const String& contentType)
51 ContentType type(contentType);
103 MediaKeySession* MediaKeys::createSession(ExecutionContext* context, const String& contentType, Uint8Array* initData, ExceptionState& exceptionState)
111 if (contentType.isEmpty()) {
112 exceptionState.throwDOMException(InvalidAccessError, "The contentType provided ('" + contentType + "') is empty.");
123 if (!isKeySystemSupportedWithContentType(m_keySystem, contentType)) {
124 exceptionState.throwDOMException(NotSupportedError, "The type provided ('" + contentType + "') is unsupported.");
137 m_pendingInitializeNewSessionData.append(InitializeNewSessionData(session, contentType, initData));
146 bool MediaKeys::isTypeSupported(const String& keySystem, const String& contentType)
148 WTF_LOG(Media, "MediaKeys::isTypeSupported(%s, %s)", keySystem.ascii().data(), contentType.ascii().data());
159 // 3. If contentType is an empty string, return true and abort these steps.
160 if (contentType.isEmpty())
164 // codec specified by contentType, return false and abort these steps.
165 return isKeySystemSupportedWithContentType(keySystem, contentType);
180 data.session->initializeNewSession(data.contentType, *data.initData);