Source/modules/encryptedmedia/MediaKeySession.cpp
// Queue a task to fire a simple event named keymessage at the new object
Queue a task to fire a simple event named keymessage at the new object
Queue a task to fire a simple event named keymessage at the new object
void MediaKeySession::message(const unsigned char* message, size_t messageLength, const blink::WebURL& destinationURL)
{
    WTF_LOG(Media, "MediaKeySession::message");
    MediaKeyMessageEventInit init;
    init.bubbles = false;
    init.cancelable = false;
    init.message = Uint8Array::create(message, messageLength);
    init.destinationURL = destinationURL.string();
    RefPtrWillBeRawPtr<MediaKeyMessageEvent> event = MediaKeyMessageEvent::create(EventTypeNames::message, init);
    event->setTarget(this);
    m_asyncEventQueue->enqueueEvent(event.release());
}
void MediaKeySession :: message ( const unsigned char * message , size_t messageLength , const blink :: WebURL & destinationURL ) { WTF_LOG ( Media , " " ) ; MediaKeyMessageEventInit init ; init . bubbles = false ; init . cancelable = false ; init . message = Uint8Array :: create ( message , messageLength ) ; init . destinationURL = destinationURL . string ( ) ; RefPtrWillBeRawPtr < MediaKeyMessageEvent > event = MediaKeyMessageEvent :: create ( EventTypeNames :: message , init ) ; event -> setTarget ( this ) ; m_asyncEventQueue -> enqueueEvent ( event . release ( ) ) ; }
Queue a task to fire a simple event named keymessage at the new object
Queue a task to fire a simple event named keymessage at the new object