// 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 ApplicationCacheHost::notifyErrorEventListener(blink::WebApplicationCacheHost::ErrorReason reason, const blink::WebURL& url, int status, const blink::WebString& message) { notifyApplicationCache(ERROR_EVENT, 0, 0, reason, url.string(), status, message); }