Home
last modified time | relevance | path

Searched refs:WebSocket (Results 1 – 25 of 51) sorted by relevance

123

/external/webkit/Source/WebCore/websockets/
DWebSocket.cpp85 void WebSocket::setIsAvailable(bool available) in setIsAvailable()
90 bool WebSocket::isAvailable() in isAvailable()
95 WebSocket::WebSocket(ScriptExecutionContext* context) in WebSocket() function in WebCore::WebSocket
102 WebSocket::~WebSocket() in ~WebSocket()
108 void WebSocket::connect(const KURL& url, ExceptionCode& ec) in connect()
113 void WebSocket::connect(const KURL& url, const String& protocol, ExceptionCode& ec) in connect()
156 bool WebSocket::send(const String& message, ExceptionCode& ec) in send()
173 void WebSocket::close() in close()
186 const KURL& WebSocket::url() const in url()
191 WebSocket::State WebSocket::readyState() const in readyState()
[all …]
DWebSocket.h51 …class WebSocket : public RefCounted<WebSocket>, public EventTarget, public ActiveDOMObject, public…
55 …static PassRefPtr<WebSocket> create(ScriptExecutionContext* context) { return adoptRef(new WebSock… in create()
56 virtual ~WebSocket();
81 virtual WebSocket* toWebSocket() { return this; } in toWebSocket()
90 using RefCounted<WebSocket>::ref;
91 using RefCounted<WebSocket>::deref;
100 WebSocket(ScriptExecutionContext*);
DWebSocket.idl42 ] WebSocket {
/external/chromium/net/websockets/
Dwebsocket_unittest.cc25 WebSocketEvent(EventType type, net::WebSocket* websocket, in WebSocketEvent()
31 net::WebSocket* socket;
61 virtual void OnOpen(net::WebSocket* socket) { in OnOpen()
69 virtual void OnMessage(net::WebSocket* socket, const std::string& msg) { in OnMessage()
75 virtual void OnError(net::WebSocket* socket) { in OnError()
82 virtual void OnClose(net::WebSocket* socket, bool was_clean) { in OnClose()
115 void InitReadBuf(WebSocket* websocket) { in InitReadBuf()
119 void SetReadConsumed(WebSocket* websocket, int consumed) { in SetReadConsumed()
122 void AddToReadBuf(WebSocket* websocket, const char* data, int len) { in AddToReadBuf()
126 void TestProcessFrameData(WebSocket* websocket, in TestProcessFrameData()
[all …]
Dwebsocket.cc20 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()
[all …]
Dwebsocket.h32 class WebSocket; variable
42 virtual void OnOpen(WebSocket* socket) = 0;
46 virtual void OnMessage(WebSocket* socket, const std::string& msg) = 0;
49 virtual void OnError(WebSocket* socket) {} in OnError()
52 virtual void OnClose(WebSocket* socket, bool was_clean) = 0;
55 virtual void OnSocketError(const WebSocket* socket, int error) {} in OnSocketError()
58 class WebSocket : public base::RefCountedThreadSafe<WebSocket>,
127 WebSocket(Request* req, WebSocketDelegate* delegate);
164 friend class base::RefCountedThreadSafe<WebSocket>;
165 virtual ~WebSocket();
[all …]
/external/chromium/chrome/browser/net/websocket_experiment/
Dwebsocket_experiment_task.h51 class WebSocket; variable
86 net::WebSocket::ProtocolVersion protocol_version;
108 virtual net::WebSocket* CreateWebSocket(
160 virtual void OnOpen(net::WebSocket* websocket);
161 virtual void OnMessage(net::WebSocket* websocket, const std::string& msg);
162 virtual void OnError(net::WebSocket* websocket);
163 virtual void OnClose(net::WebSocket* websocket, bool was_clean);
164 virtual void OnSocketError(const net::WebSocket* websocket, int error);
201 scoped_refptr<net::WebSocket> websocket_;
Dwebsocket_experiment_task.cc23 net::WebSocket::ProtocolVersion protocol_version) { in GetProtocolVersionName()
25 case net::WebSocket::DEFAULT_VERSION: in GetProtocolVersionName()
27 case net::WebSocket::DRAFT75: in GetProtocolVersionName()
54 net::WebSocket* WebSocketExperimentTask::Context::CreateWebSocket( in CreateWebSocket()
63 net::WebSocket::Request* request( in CreateWebSocket()
64 new net::WebSocket::Request(config.url, in CreateWebSocket()
70 return new net::WebSocket(request, delegate); in CreateWebSocket()
101 protocol_version(net::WebSocket::DEFAULT_VERSION), in Config()
144 case net::WebSocket::DEFAULT_VERSION: in GetCounterNameForConfig()
147 case net::WebSocket::DRAFT75: in GetCounterNameForConfig()
[all …]
Dwebsocket_experiment_runner.cc111 task_config.protocol_version = net::WebSocket::DEFAULT_VERSION; in InitConfig()
143 task_config.protocol_version = net::WebSocket::DRAFT75; in InitConfig()
/external/webkit/Source/WebCore/bindings/js/
DJSWebSocketCustom.cpp61 RefPtr<WebSocket> webSocket = WebSocket::create(context); in constructJSWebSocket()
72 …return JSValue::encode(CREATE_DOM_OBJECT_WRAPPER(exec, jsConstructor->globalObject(), WebSocket, w… in constructJSWebSocket()
DJSEventTarget.cpp183 if (WebSocket* webSocket = target->toWebSocket()) in toJS()
237 CONVERT_TO_EVENT_TARGET(WebSocket) in toEventTarget()
/external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/src/org/chromium/
DIRCProxyWebSocket.java17 import org.eclipse.jetty.websocket.WebSocket;
32 protected WebSocket doWebSocketConnect(HttpServletRequest request, in doWebSocketConnect()
37 class ChatWebSocket implements WebSocket, Runnable {
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8WebSocketCustom.cpp71 RefPtr<WebSocket> webSocket = WebSocket::create(context); in constructorCallback()
/external/webkit/Source/WebCore/inspector/front-end/
DResource.js47 WebSocket: 7, property
70 case this.WebSocket:
95 case this.WebSocket:
397 case WebInspector.Resource.Type.WebSocket:
650 || this.type === WebInspector.Resource.Type.WebSocket)
740 if (this.type === WebInspector.Resource.Type.WebSocket) {
DAuditLauncherView.js69 if (resource.type === WebInspector.Resource.Type.WebSocket)
79 if (resource.type === WebInspector.Resource.Type.WebSocket)
DNetworkManager.js250 resource.type = WebInspector.Resource.Type.WebSocket;
/external/webkit/Source/WebCore/bindings/cpp/
DWebDOMEventTarget.cpp129 ConvertTo(WebSocket) in ConvertTo()
193 if (WebCore::WebSocket* webSocket = value->toWebSocket()) in toWebKit()
/external/webkit/Source/WebKit/chromium/src/
DWebRuntimeFeatures.cpp110 WebSocket::setIsAvailable(enable); in enableSockets()
117 return WebSocket::isAvailable(); in isSocketsEnabled()
/external/chromium/chrome/browser/extensions/
Dextension_websocket_apitest.cc11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebSocket) { in IN_PROC_BROWSER_TEST_F() argument
/external/webkit/LayoutTests/fast/constructors/
Dconstructor-as-function-crash-expected.txt9 PASS: WebSocket
/external/webkit/Source/WebCore/bindings/generic/
DRuntimeEnabledFeatures.cpp129 return WebSocket::isAvailable(); in webSocketEnabled()
/external/webkit/Source/WebCore/dom/
DEventTarget.h65 class WebSocket; variable
131 virtual WebSocket* toWebSocket();
DEventTarget.cpp134 WebSocket* EventTarget::toWebSocket() in toWebSocket()
/external/webkit/Source/WebCore/workers/
DWorkerContext.idl96 …attribute [JSCCustomGetter,EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the ne…
/external/webkit/Source/WebCore/bindings/v8/
DV8DOMWrapper.cpp397 if (WebSocket* webSocket = target->toWebSocket()) in convertEventTargetToV8Object()

123