void AbstractAudioContext::uninitialize() { ASSERT(isMainThread()); if (!isInitialized()) return; m_isInitialized = false; // This stops the audio thread and all audio rendering. if (m_destinationNode) m_destinationNode->handler().uninitialize(); // Get rid of the sources which may still be playing. releaseActiveSourceNodes(); // Reject any pending resolvers before we go away. rejectPendingResolvers(); didClose(); ASSERT(m_listener); m_listener->waitForHRTFDatabaseLoaderThreadCompletion(); clear(); }
void WebInspectorProxy::close() { if (!m_inspectedPage) return; m_inspectedPage->process().send(Messages::WebInspector::Close(), m_inspectedPage->pageID()); didClose(); }
void WebSocket::didConnect() { LOG(Network, "WebSocket %p didConnect", this); if (m_state != CONNECTING) { didClose(); return; } m_state = OPEN; scriptExecutionContext()->postTask(ProcessWebSocketEventTask::create(this, Event::create(eventNames().openEvent, false, false))); }
void WebSocket::didConnect() { LOG(Network, "WebSocket %p didConnect", this); if (m_state != CONNECTING) { didClose(0); return; } ASSERT(scriptExecutionContext()); m_state = OPEN; dispatchEvent(Event::create(eventNames().openEvent, false, false)); }
void WebProcessProxy::didReceiveInvalidMessage(CoreIPC::Connection* connection, CoreIPC::StringReference messageReceiverName, CoreIPC::StringReference messageName) { WTFLogAlways("Received an invalid message \"%s.%s\" from the web process.\n", messageReceiverName.toString().data(), messageName.toString().data()); // Terminate the WebProcesses. terminate(); // Since we've invalidated the connection we'll never get a CoreIPC::Connection::Client::didClose // callback so we'll explicitly call it here instead. didClose(connection); }
void WebSocketChannel::resumeTimerFired(Timer<WebSocketChannel>* timer) { ASSERT_UNUSED(timer, timer == &m_resumeTimer); RefPtr<WebSocketChannel> protect(this); // The client can close the channel, potentially removing the last reference. while (!m_suspended && m_client && m_buffer) if (!processBuffer()) break; if (!m_suspended && m_client && m_closed && m_handle) didClose(m_handle.get()); }
void WebSocket::didConnect() { LOG(Network, "WebSocket %p didConnect", this); if (m_state != CONNECTING) { didClose(0, ClosingHandshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, ""); return; } ASSERT(scriptExecutionContext()); m_state = OPEN; m_subprotocol = m_channel->subprotocol(); dispatchEvent(Event::create(eventNames().openEvent, false, false)); }
void WebInspectorProxy::invalidate() { m_page->close(); didClose(); m_page = 0; m_isVisible = false; m_isDebuggingJavaScript = false; m_isProfilingJavaScript = false; m_isProfilingPage = false; }
void WebInspectorProxy::invalidate() { #if ENABLE(INSPECTOR_SERVER) if (m_remoteInspectionPageId) WebInspectorServer::singleton().unregisterPage(m_remoteInspectionPageId); #endif m_inspectedPage->process().removeMessageReceiver(Messages::WebInspectorProxy::messageReceiverName(), m_inspectedPage->pageID()); didClose(); platformInvalidate(); pageLevelMap().remove(m_inspectedPage); m_inspectedPage = nullptr; }
void WebInspectorProxy::invalidate() { #if ENABLE(INSPECTOR_SERVER) if (m_remoteInspectionPageId) WebInspectorServer::shared().unregisterPage(m_remoteInspectionPageId); #endif m_page->process().removeMessageReceiver(Messages::WebInspectorProxy::messageReceiverName(), m_page->pageID()); m_page->close(); didClose(); m_page = 0; }