Lines Matching refs:websocket
15 #include "net/websockets/websocket.h"
23 net::WebSocket::ProtocolVersion protocol_version) {
25 case net::WebSocket::DEFAULT_VERSION:
27 case net::WebSocket::DRAFT75:
54 net::WebSocket* WebSocketExperimentTask::Context::CreateWebSocket(
63 net::WebSocket::Request* request(
64 new net::WebSocket::Request(config.url,
70 return new net::WebSocket(request, delegate);
73 // Expects URL Fetch and WebSocket connection handshake will finish in
77 // Expects WebSocket live experiment server echoes message back within a few
80 // WebSocket live experiment server keeps idle for 1.5 seconds and sends
85 // WebSocket live experiment server sends "bye" message soon.
87 // WebSocket live experiment server closes after it receives "bye" message.
99 : ws_protocol("google-websocket-liveexperiment"),
101 protocol_version(net::WebSocket::DEFAULT_VERSION),
106 // Note: websocket live experiment server is configured to wait 1.5 sec
144 case net::WebSocket::DEFAULT_VERSION:
147 case net::WebSocket::DRAFT75:
229 DVLOG(1) << "Run WebSocket experiment for " << config_.url << " "
241 DVLOG(1) << "WebSocket experiment save result for " << config_.url
307 void WebSocketExperimentTask::OnOpen(net::WebSocket* websocket) {
322 net::WebSocket* websocket, const std::string& msg) {
348 void WebSocketExperimentTask::OnError(net::WebSocket* websocket) {
353 net::WebSocket* websocket, bool was_clean) {
361 DVLOG(1) << "WebSocket onclose was_clean=" << was_clean
364 if (config_.protocol_version == net::WebSocket::DEFAULT_VERSION) {
376 const net::WebSocket* websocket, int error) {
377 DVLOG(1) << "WebSocket socket level error=" << net::ErrorToString(error)
634 scoped_refptr<net::WebSocket> websocket = websocket_;
636 if (websocket)
637 websocket->DetachDelegate();
638 DVLOG(1) << "Finish WebSocket experiment for " << config_.url