Lines Matching refs:websocket
152 base::HttpServerConnection* websocket = GetWebsocket(sock); in OnDataAvailable() local
153 PERFETTO_CHECK(websocket); in OnDataAvailable()
158 websocket->SendWebsocketMessage(buf, static_cast<size_t>(rsize)); in OnDataAvailable()
162 websocket->Close(); in OnDataAvailable()
167 void WSBridge::OnHttpConnectionClosed(base::HttpServerConnection* websocket) { in OnHttpConnectionClosed() argument
169 auto it = conns_.find(websocket); in OnHttpConnectionClosed()
174 conns_.erase(websocket); in OnHttpConnectionClosed()
178 base::HttpServerConnection* websocket = GetWebsocket(sock); in OnDisconnect() local
179 if (!websocket) in OnDisconnect()
181 websocket->Close(); in OnDisconnect()
183 conns_.erase(websocket); in OnDisconnect()