Lines Matching refs:WebSocket
20 WebSocket::WebSocket(Request* request, WebSocketDelegate* delegate) in WebSocket() function in net::WebSocket
41 WebSocket::~WebSocket() { in ~WebSocket()
47 void WebSocket::Connect() { in Connect()
67 void WebSocket::Send(const std::string& msg) { in Send()
87 void WebSocket::Close() { in Close()
113 NewRunnableMethod(this, &WebSocket::FailConnection)); in Close()
123 NewRunnableMethod(this, &WebSocket::StartClosingHandshake)); in Close()
130 void WebSocket::DetachDelegate() { in DetachDelegate()
145 void WebSocket::OnConnected(SocketStream* socket_stream, in OnConnected()
177 NewRunnableMethod(this, &WebSocket::SendPending)); in OnConnected()
180 void WebSocket::OnSentData(SocketStream* socket_stream, int amount_sent) { in OnSentData()
190 NewRunnableMethod(this, &WebSocket::SendPending)); in OnSentData()
193 void WebSocket::OnReceivedData(SocketStream* socket_stream, in OnReceivedData()
198 NewRunnableMethod(this, &WebSocket::DoReceivedData)); in OnReceivedData()
201 void WebSocket::OnClose(SocketStream* socket_stream) { in OnClose()
203 NewRunnableMethod(this, &WebSocket::DoClose)); in OnClose()
206 void WebSocket::OnError(const SocketStream* socket_stream, int error) { in OnError()
208 FROM_HERE, NewRunnableMethod(this, &WebSocket::DoSocketError, error)); in OnError()
211 void WebSocket::SendPending() { in SendPending()
232 NewRunnableMethod(this, &WebSocket::DoForceCloseConnection); in SendPending()
250 void WebSocket::DoReceivedData() { in DoReceivedData()
252 scoped_refptr<WebSocket> protect(this); in DoReceivedData()
295 void WebSocket::ProcessFrameData() { in ProcessFrameData()
301 scoped_refptr<WebSocket> protect(this); in ProcessFrameData()
345 NewRunnableMethod(this, &WebSocket::StartClosingHandshake)); in ProcessFrameData()
384 void WebSocket::AddToReadBuffer(const char* data, int len) { in AddToReadBuffer()
397 void WebSocket::SkipReadBuffer(int len) { in SkipReadBuffer()
422 void WebSocket::StartClosingHandshake() { in StartClosingHandshake()
437 void WebSocket::DoForceCloseConnection() { in DoForceCloseConnection()
447 void WebSocket::FailConnection() { in FailConnection()
458 void WebSocket::DoClose() { in DoClose()
478 void WebSocket::DoSocketError(int error) { in DoSocketError()