Home | History | Annotate | Download | only in websockets

Lines Matching refs:reason

231 void NewWebSocketChannelImpl::close(int code, const String& reason)
233 WTF_LOG(Network, "NewWebSocketChannelImpl %p close(%d, %s)", this, code, reason.utf8().data());
236 m_handle->close(codeToSend, reason);
239 void NewWebSocketChannelImpl::fail(const String& reason, MessageLevel level, const String& sourceURL, unsigned lineNumber)
241 WTF_LOG(Network, "NewWebSocketChannelImpl %p fail(%s)", this, reason.utf8().data());
245 InspectorInstrumentation::didReceiveWebSocketFrameError(document(), m_identifier, reason);
246 const String message = "WebSocket connection to '" + m_url.elidedString() + "' failed: " + reason;
251 // |reason| is only for logging and should not be provided for scripts,
252 // hence close reason must be empty.
370 void NewWebSocketChannelImpl::handleDidClose(bool wasClean, unsigned short code, const String& reason)
381 reason);
491 void NewWebSocketChannelImpl::didClose(WebSocketHandle* handle, bool wasClean, unsigned short code, const blink::WebString& reason)
493 WTF_LOG(Network, "NewWebSocketChannelImpl %p didClose(%p, %d, %u, %s)", this, handle, wasClean, code, String(reason).utf8().data());
504 handleDidClose(wasClean, code, reason);
541 // FIXME: Generate human-friendly reason message.