Home | History | Annotate | Download | only in proxy

Lines Matching refs:code

2 // Use of this source code is governed by a BSD-style license that can be
129 int32_t WebSocketResource::Close(uint16_t code,
137 // Validate |code| and |reason|.
141 static_cast<WebKit::WebSocket::CloseEventCode>(code);
142 if (code == PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED) {
148 if (!(code == PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE ||
149 (PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN <= code &&
150 code <= PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MAX)))
151 // RFC 6455 limits applications to use reserved connection close code in
156 // |reason| must be ignored if it is PP_VARTYPE_UNDEFINED or |code| is
384 unsigned short code,
390 close_code_ = code;
457 // ReceiveMessage(), we must invoke the callback with error code here.
478 unsigned short code,
480 OnPluginMsgCloseReply(params, buffered_amount, was_clean, code, reason);