/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/handshake/ |
hybi00.py | 69 def _validate_subprotocol(subprotocol): 70 """Checks if characters in subprotocol are in range between U+0020 and 77 if not subprotocol: 78 raise HandshakeException('Invalid subprotocol name: empty') 81 for c in subprotocol: 84 'Illegal character in subprotocol name: %r' % c) 172 subprotocol = self._request.headers_in.get( 174 if subprotocol is not None: 175 _validate_subprotocol(subprotocol) 176 self._request.ws_protocol = subprotocol [all...] |
_base.py | 87 def validate_subprotocol(subprotocol): 93 if not subprotocol: 94 raise HandshakeException('Invalid subprotocol name: empty') 97 state = http_header_util.ParsingState(subprotocol) 100 # If |rest| is not None, |subprotocol| is not one token or invalid. If 101 # |rest| is None, |token| must not be None because |subprotocol| is 104 raise HandshakeException('Invalid non-token string in subprotocol '
|
hybi.py | 268 'do_extra_handshake must choose one subprotocol from ' 273 'Subprotocol accepted: %r', 279 'request any subprotocol')
|
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/handshake/ |
_base.py | 87 def validate_subprotocol(subprotocol, hixie): 88 """Validate a value in subprotocol fields such as WebSocket-Protocol, 97 if not subprotocol: 98 raise HandshakeException('Invalid subprotocol name: empty') 101 for c in subprotocol: 104 'Illegal character in subprotocol name: %r' % c) 107 state = http_header_util.ParsingState(subprotocol) 110 # If |rest| is not None, |subprotocol| is not one token or invalid. If 111 # |rest| is None, |token| must not be None because |subprotocol| is 114 raise HandshakeException('Invalid non-token string in subprotocol ' [all...] |
draft75.py | 132 subprotocol = self._request.headers_in.get('WebSocket-Protocol') 133 if subprotocol is not None: 134 validate_subprotocol(subprotocol, hixie=True) 135 self._request.ws_protocol = subprotocol
|
hybi00.py | 121 subprotocol = self._request.headers_in.get( 123 if subprotocol is not None: 124 validate_subprotocol(subprotocol, hixie=True) 125 self._request.ws_protocol = subprotocol
|
hybi.py | 243 'do_extra_handshake must choose one subprotocol from ' 248 'Subprotocol accepted: %r', 254 'request any subprotocol')
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebSocket.h | 87 virtual WebString subprotocol() = 0;
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebSocketImpl.cpp | 85 WebString WebSocketImpl::subprotocol() function in class:blink::WebSocketImpl 87 return m_private->subprotocol();
|
WebSocketImpl.h | 59 virtual WebString subprotocol() OVERRIDE;
|
/external/chromium_org/third_party/WebKit/Source/modules/websockets/ |
WebSocketChannel.h | 79 virtual String subprotocol() = 0; // Will be available after didConnect() callback is invoked.
|
ThreadableWebSocketChannelClientWrapper.h | 65 // Subprotocol and extensions will be available when didConnect() callback is invoked. 66 String subprotocol() const;
|
ThreadableWebSocketChannelClientWrapper.cpp | 99 String ThreadableWebSocketChannelClientWrapper::subprotocol() const function in class:WebCore::ThreadableWebSocketChannelClientWrapper 106 void ThreadableWebSocketChannelClientWrapper::setSubprotocol(const String& subprotocol) 109 append(m_subprotocol, subprotocol);
|
WorkerThreadableWebSocketChannel.cpp | 75 String WorkerThreadableWebSocketChannel::subprotocol() function in class:WebCore::WorkerThreadableWebSocketChannel 78 return m_workerClientWrapper->subprotocol(); 282 static void workerGlobalScopeDidConnect(ExecutionContext* context, PassRefPtr<ThreadableWebSocketChannelClientWrapper> workerClientWrapper, const String& subprotocol, const String& extensions) 285 workerClientWrapper->setSubprotocol(subprotocol); 293 m_loaderProxy.postTaskForModeToWorkerGlobalScope(createCallbackTask(&workerGlobalScopeDidConnect, m_workerClientWrapper, m_mainWebSocketChannel->subprotocol(), m_mainWebSocketChannel->extensions()), m_taskMode);
|
MainThreadWebSocketChannel.h | 74 virtual String subprotocol() OVERRIDE;
|
NewWebSocketChannelImpl.h | 80 virtual String subprotocol() OVERRIDE;
|
WorkerThreadableWebSocketChannel.h | 68 virtual String subprotocol() OVERRIDE;
|
NewWebSocketChannelImpl.cpp | 144 String NewWebSocketChannelImpl::subprotocol() function in class:WebCore::NewWebSocketChannelImpl 146 WTF_LOG(Network, "NewWebSocketChannelImpl %p subprotocol()", this);
|
WebSocket.cpp | 152 // Hybi-10 says "(Subprotocol string must consist of) characters in the range U+0021 to U+007E not including 334 exceptionState.throwDOMException(SyntaxError, "The subprotocol '" + encodeProtocolString(protocols[i]) + "' is invalid."); 342 exceptionState.throwDOMException(SyntaxError, "The subprotocol '" + encodeProtocolString(protocols[i]) + "' is duplicated."); 595 m_subprotocol = m_channel->subprotocol();
|
MainThreadWebSocketChannel.cpp | 106 String MainThreadWebSocketChannel::subprotocol() function in class:WebCore::MainThreadWebSocketChannel 108 WTF_LOG(Network, "MainThreadWebSocketChannel %p subprotocol()", this); [all...] |
/external/chromium_org/content/renderer/pepper/ |
pepper_websocket_host.cc | 71 protocol = websocket_->subprotocol().utf8(); 204 // WebSocket specification says "(Subprotocol string must consist of)
|