/external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/ |
MediaKeys.cpp | 47 static bool isKeySystemSupportedWithContentType(const String& keySystem, const String& contentType) 49 ASSERT(!keySystem.isEmpty()); 53 return MIMETypeRegistry::isSupportedEncryptedMediaMIMEType(keySystem, type.type(), codecs); 56 MediaKeys* MediaKeys::create(ExecutionContext* context, const String& keySystem, ExceptionState& exceptionState) 59 // The MediaKeys(keySystem) constructor must run the following steps: 61 // 1. If keySystem is an empty string, throw an InvalidAccessError exception and abort these steps. 62 if (keySystem.isEmpty()) { 67 // 2. If keySystem is not one of the user agent's supported Key Systems, throw a NotSupportedError and abort these steps. 68 if (!isKeySystemSupportedWithContentType(keySystem, "")) { 69 exceptionState.throwDOMException(NotSupportedError, "The '" + keySystem + "' key system is not supported.") [all...] |
MediaKeys.idl | 28 Constructor(DOMString keySystem), 34 readonly attribute DOMString keySystem; 38 static boolean isTypeSupported(DOMString keySystem, optional DOMString contentType = null);
|
MediaKeysClient.h | 22 virtual PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule(ExecutionContext*, const String& keySystem) = 0;
|
HTMLMediaElementEncryptedMedia.h | 26 static void webkitGenerateKeyRequest(HTMLMediaElement&, const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState&); 27 static void webkitGenerateKeyRequest(HTMLMediaElement&, const String& keySystem, ExceptionState&); 28 static void webkitAddKey(HTMLMediaElement&, const String& keySystem, PassRefPtr<Uint8Array> key, PassRefPtr<Uint8Array> initData, const String& sessionId, ExceptionState&); 29 static void webkitAddKey(HTMLMediaElement&, const String& keySystem, PassRefPtr<Uint8Array> key, ExceptionState&); 30 static void webkitCancelKeyRequest(HTMLMediaElement&, const String& keySystem, const String& sessionId, ExceptionState&); 42 static void keyAdded(HTMLMediaElement&, const String& keySystem, const String& sessionId); 43 static void keyError(HTMLMediaElement&, const String& keySystem, const String& sessionId, blink::WebMediaPlayerClient::MediaKeyErrorCode, unsigned short systemCode); 44 static void keyMessage(HTMLMediaElement&, const String& keySystem, const String& sessionId, const unsigned char* message, unsigned messageLength, const blink::WebURL& defaultURL); 56 void generateKeyRequest(blink::WebMediaPlayer*, const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState&); 57 void addKey(blink::WebMediaPlayer*, const String& keySystem, PassRefPtr<Uint8Array> key, PassRefPtr<Uint8Array> initData, const String& sessionId, ExceptionSt (…) [all...] |
MediaKeysController.cpp | 23 PassOwnPtr<blink::WebContentDecryptionModule> MediaKeysController::createContentDecryptionModule(ExecutionContext* context, const String& keySystem) 25 return m_client->createContentDecryptionModule(context, keySystem);
|
HTMLMediaElementEncryptedMedia.cpp | 20 static void throwExceptionIfMediaKeyExceptionOccurred(const String& keySystem, const String& sessionId, blink::WebMediaPlayer::MediaKeyException exception, ExceptionState& exceptionState) 29 exceptionState.throwDOMException(NotSupportedError, "The key system provided ('" + keySystem +"') is not supported."); 123 webkitInitializer.keySystem = String(); 132 void HTMLMediaElementEncryptedMedia::webkitGenerateKeyRequest(HTMLMediaElement& element, const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState& exceptionState) 134 HTMLMediaElementEncryptedMedia::from(element).generateKeyRequest(element.webMediaPlayer(), keySystem, initData, exceptionState); 137 void HTMLMediaElementEncryptedMedia::generateKeyRequest(blink::WebMediaPlayer* webMediaPlayer, const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState& exceptionState) 144 if (keySystem.isEmpty()) { 161 blink::WebMediaPlayer::MediaKeyException result = webMediaPlayer->generateKeyRequest(keySystem, initDataPointer, initDataLength); 162 throwExceptionIfMediaKeyExceptionOccurred(keySystem, String(), result, exceptionState); 165 void HTMLMediaElementEncryptedMedia::webkitGenerateKeyRequest(HTMLMediaElement& mediaElement, const String& keySystem, ExceptionState& exceptionState [all...] |
MediaKeySession.idl | 36 readonly attribute DOMString keySystem;
|
MediaKeys.h | 56 static MediaKeys* create(ExecutionContext*, const String& keySystem, ExceptionState&); 59 const String& keySystem() const { return m_keySystem; } 63 static bool isTypeSupported(const String& keySystem, const String& contentType); 73 MediaKeys(ExecutionContext*, const String& keySystem, PassOwnPtr<blink::WebContentDecryptionModule>);
|
MediaKeysController.h | 23 PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule(ExecutionContext*, const String& keySystem);
|
MediaKeySession.h | 75 const String& keySystem() const { return m_keySystem; }
|
/external/chromium_org/third_party/WebKit/Source/web/ |
MediaKeysClientImpl.h | 21 virtual PassOwnPtr<WebContentDecryptionModule> createContentDecryptionModule(WebCore::ExecutionContext*, const String& keySystem) OVERRIDE;
|
MediaKeysClientImpl.cpp | 22 PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecryptionModule(WebCore::ExecutionContext* executionContext, const String& keySystem) 27 return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem));
|
WebMediaPlayerClientImpl.h | 82 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId) OVERRIDE; 83 virtual void keyError(const WebString& keySystem, const WebString& sessionId, MediaKeyErrorCode, unsigned short systemCode) OVERRIDE; 84 virtual void keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) OVERRIDE;
|
WebMediaPlayerClientImpl.cpp | 124 void WebMediaPlayerClientImpl::keyAdded(const WebString& keySystem, const WebString& sessionId) 126 HTMLMediaElementEncryptedMedia::keyAdded(mediaElement(), keySystem, sessionId); 129 void WebMediaPlayerClientImpl::keyError(const WebString& keySystem, const WebString& sessionId, MediaKeyErrorCode errorCode, unsigned short systemCode) 131 HTMLMediaElementEncryptedMedia::keyError(mediaElement(), keySystem, sessionId, errorCode, systemCode); 134 void WebMediaPlayerClientImpl::keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) 136 HTMLMediaElementEncryptedMedia::keyMessage(mediaElement(), keySystem, sessionId, message, messageLength, defaultURL);
|
/external/chromium_org/content/test/data/media/ |
encrypted_media_utils.js | 5 var keySystem = QueryString.keysystem; 33 return loadEncryptedMedia(video, mediaFile, keySystem, KEY, useMSE); 36 function loadEncryptedMedia(video, mediaFile, keySystem, key, useMSE, 43 video.isHeartbeatExpected = keySystem === EXTERNAL_CLEAR_KEY_KEY_SYSTEM; 46 if (!(video && mediaFile && keySystem && key)) { 57 video.webkitGenerateKeyRequest(keySystem, e.initData); 70 if (!e.keySystem || e.keySystem != keySystem) { [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
MediaKeyEvent.idl | 30 [InitializedByEventConstructor] readonly attribute DOMString keySystem;
|
MediaKeyEvent.cpp | 45 , m_keySystem(initializer.keySystem)
|
MediaKeyEvent.h | 37 String keySystem; 62 String keySystem() const { return m_keySystem; }
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebMimeRegistry.h | 46 virtual SupportsType supportsMediaMIMEType(const blink::WebString& mimeType, const blink::WebString& codecs, const blink::WebString& keySystem) = 0; 49 virtual bool supportsEncryptedMediaMIMEType(const blink::WebString& keySystem, const blink::WebString& mimeType, const blink::WebString& codecs) = 0;
|
WebMediaPlayerClient.h | 86 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId) = 0; 87 virtual void keyError(const WebString& keySystem, const WebString& sessionId, MediaKeyErrorCode, unsigned short systemCode) = 0; 88 virtual void keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) = 0;
|
WebMediaPlayer.h | 152 // Returns whether keySystem is supported. If true, the result will be 154 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, const unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionKeySystemNotSupported; } 155 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } 156 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
MIMETypeRegistry.h | 67 static bool isSupportedEncryptedMediaMIMEType(const String& keySystem, const String& mimeType, const String& codecs);
|
MIMETypeRegistry.cpp | 108 bool MIMETypeRegistry::isSupportedEncryptedMediaMIMEType(const String& keySystem, const String& mimeType, const String& codecs) 111 return blink::Platform::current()->mimeRegistry()->supportsEncryptedMediaMIMEType(keySystem, mimeType.lower(), codecs);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwBrowserProcess.java | 69 String keySystem = fragments[0].trim(); 71 MediaDrmBridge.addKeySystemUuidMapping(keySystem, uuid);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
KeySystemTest.java | 36 "function isKeySystemSupported(keySystem) {" + 38 "return video.canPlayType('video/mp4', keySystem);" + 43 private String IsKeySystemSupported(String keySystem) throws Exception { 45 "isKeySystemSupported('" + keySystem + "')"); 67 assertEquals("\"\"", IsKeySystemSupported("com.foo.keysystem")); 73 assertEquals("\"maybe\"", IsKeySystemSupported("com.oem.test-keysystem"));
|