Home
last modified time | relevance | path

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

1234

/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DWebSocket.cpp66 WebSocket::EventQueue::EventQueue(EventTarget* target) in EventQueue()
71 WebSocket::EventQueue::~EventQueue() { stop(); } in ~EventQueue()
73 void WebSocket::EventQueue::dispatch(PassRefPtr<Event> event) in dispatch()
91 void WebSocket::EventQueue::suspend() in suspend()
99 void WebSocket::EventQueue::resume() in resume()
107 void WebSocket::EventQueue::stop() in stop()
117 void WebSocket::EventQueue::dispatchQueuedEvents() in dispatchQueuedEvents()
141 void WebSocket::EventQueue::resumeTimerFired(Timer<EventQueue>*) in resumeTimerFired()
211 const char* WebSocket::subProtocolSeperator() in subProtocolSeperator()
216 WebSocket::WebSocket(ExecutionContext* context) in WebSocket() function in WebCore::WebSocket
[all …]
DWebSocket.h54 class WebSocket : public RefCounted<WebSocket>, public ScriptWrappable, public EventTargetWithInlin…
55 REFCOUNTED_EVENT_TARGET(WebSocket);
61 static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, ExceptionState&);
62 …static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, const String& protocol, …
63 …static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, const Vector<String>& pr…
64 virtual ~WebSocket();
163 explicit WebSocket(ExecutionContext*);
/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_org/ppapi/cpp/
Dwebsocket.cc25 WebSocket::WebSocket(const InstanceHandle& instance) { in WebSocket() function in pp::WebSocket
32 WebSocket::~WebSocket() { in ~WebSocket()
35 int32_t WebSocket::Connect(const Var& url, const Var protocols[], in Connect()
55 int32_t WebSocket::Close(uint16_t code, const Var& reason, in Close()
65 int32_t WebSocket::ReceiveMessage(Var* message, in ReceiveMessage()
79 int32_t WebSocket::SendMessage(const Var& message) { in SendMessage()
87 uint64_t WebSocket::GetBufferedAmount() { in GetBufferedAmount()
94 uint16_t WebSocket::GetCloseCode() { in GetCloseCode()
101 Var WebSocket::GetCloseReason() { in GetCloseReason()
109 bool WebSocket::GetCloseWasClean() { in GetCloseWasClean()
[all …]
Dwebsocket.h28 class WebSocket : public Resource {
34 explicit WebSocket(const InstanceHandle& instance);
37 virtual ~WebSocket();
/external/chromium_org/net/data/websocket/
DREADME1 This directory contains resources used by WebSocket server for testing.
4 - connect_check.html : A page provides simple WebSocket connectivity check.
11 packets mean TCP segments for WebSocket, or SSL records for secure
12 WebSocket. This page changes the title to "PASS" to notify
17 - websocket_shared_worker.html : A page provides simple WebSocket test in
26 - echo-with-no-extension_wsh.py : A WebSocket URL handler for echo testing.
27 This handler disables all WebSocket extension so that we can perform
29 Used by kinds of PPAPI tests for WebSocket, ExtensionApiTest.WebSocket,
32 - close_wsh.py : A WebSocket URL handler for testing outgoing close code and
34 Used by kinds of PPAPI tests for WebSocket.
[all …]
/external/chromium_org/chrome/test/chromedriver/net/
Dwebsocket.cc59 WebSocket::WebSocket(const GURL& url, WebSocketListener* listener) in WebSocket() function in WebSocket
66 WebSocket::~WebSocket() { in ~WebSocket()
70 void WebSocket::Connect(const net::CompletionCallback& callback) { in Connect()
90 &WebSocket::OnSocketConnect, base::Unretained(this))); in Connect()
95 bool WebSocket::Send(const std::string& message) { in Send()
118 void WebSocket::OnSocketConnect(int code) { in OnSocketConnect()
142 void WebSocket::Write(const std::string& data) { in Write()
148 void WebSocket::OnWrite(int code) { in OnWrite()
163 void WebSocket::ContinueWritingIfNecessary() { in ContinueWritingIfNecessary()
175 base::Bind(&WebSocket::OnWrite, base::Unretained(this))); in ContinueWritingIfNecessary()
[all …]
Dwebsocket_unittest.cc99 scoped_ptr<WebSocket> CreateWebSocket(const GURL& url, in CreateWebSocket()
102 scoped_ptr<WebSocket> sock(new WebSocket(url, listener)); in CreateWebSocket()
111 return scoped_ptr<WebSocket>(); in CreateWebSocket()
114 scoped_ptr<WebSocket> CreateConnectedWebSocket(WebSocketListener* listener) { in CreateConnectedWebSocket()
120 scoped_ptr<WebSocket> sock(CreateConnectedWebSocket(&listener)); in SendReceive()
140 WebSocket sock(GURL("ws://127.0.0.1:2222"), &listener); in TEST_F()
173 scoped_ptr<WebSocket> sock(CreateConnectedWebSocket(&listener)); in TEST_F()
185 scoped_ptr<WebSocket> sock(CreateConnectedWebSocket(&listener)); in TEST_F()
Dwebsocket.h28 class WebSocket {
31 WebSocket(const GURL& url, WebSocketListener* listener);
32 virtual ~WebSocket();
81 DISALLOW_COPY_AND_ASSIGN(WebSocket);
/external/chromium_org/ppapi/api/
Dppb_websocket.idl18 * This enumeration contains the types representing the WebSocket ready state
19 * and these states are based on the JavaScript WebSocket API specification.
35 * Ready state that the WebSocket connection is established and communication
53 * GetCloseCode(). Refer to RFC 6455, The WebSocket Protocol, for further
136 * server didn't return them in the response message of the WebSocket
183 * Create() creates a WebSocket instance.
186 * with the WebSocket.
188 * @return A <code>PP_Resource</code> corresponding to a WebSocket if
195 * WebSocket instance.
198 * 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 …]
/external/chromium_org/net/server/
Dweb_socket.h17 class WebSocket {
26 static WebSocket* CreateWebSocket(HttpConnection* connection,
41 virtual ~WebSocket() {} in ~WebSocket()
44 explicit WebSocket(HttpConnection* connection);
48 DISALLOW_COPY_AND_ASSIGN(WebSocket);
Dweb_socket.cc44 class WebSocketHixie76 : public net::WebSocket {
46 static net::WebSocket* Create(HttpConnection* connection, in Create()
114 size_t* pos) : WebSocket(connection) { in WebSocketHixie76()
170 class WebSocketHybi17 : public WebSocket {
172 static WebSocket* Create(HttpConnection* connection, in Create()
212 WebSocket::DecodeFrameHybi17(frame, true, &bytes_consumed, message); in Read()
223 std::string data = WebSocket::EncodeFrameHybi17(message, 0); in Send()
231 : WebSocket(connection), in WebSocketHybi17()
260 WebSocket* WebSocket::CreateWebSocket(HttpConnection* connection, in CreateWebSocket()
263 WebSocket* socket = WebSocketHybi17::Create(connection, request, pos); in CreateWebSocket()
[all …]
Dhttp_connection.h19 class WebSocket; variable
42 scoped_ptr<WebSocket> web_socket_;
Dhttp_server.cc117 WebSocket::ParseResult result = connection->web_socket_->Read(&message); in DidRead()
118 if (result == WebSocket::FRAME_INCOMPLETE) in DidRead()
121 if (result == WebSocket::FRAME_CLOSE || in DidRead()
122 result == WebSocket::FRAME_ERROR) { in DidRead()
137 connection->web_socket_.reset(WebSocket::CreateWebSocket(connection, in DidRead()
/external/chromium_org/chrome/browser/devtools/
Dadb_web_socket.cc15 using net::WebSocket;
57 std::string encoded_frame = WebSocket::EncodeFrameHybi17(message, mask); in SendFrameOnHandlerThread()
111 WebSocket::ParseResult parse_result = WebSocket::DecodeFrameHybi17( in OnBytesRead()
114 while (parse_result == WebSocket::FRAME_OK) { in OnBytesRead()
120 parse_result = WebSocket::DecodeFrameHybi17( in OnBytesRead()
124 if (parse_result == WebSocket::FRAME_ERROR || in OnBytesRead()
125 parse_result == WebSocket::FRAME_CLOSE) { in OnBytesRead()
/external/chromium_org/ppapi/utility/websocket/
Dwebsocket_api.cc22 class WebSocketAPI::Implement : public WebSocket {
25 : WebSocket(instance), in Implement()
37 WebSocket::Connect(url, protocols, protocol_count, callback); in Connect()
51 int32_t result = WebSocket::Close(code, reason, callback); in Close()
67 result = WebSocket::ReceiveMessage(&receive_message_var_, callback); in Receive()
/external/chromium_org/third_party/WebKit/public/web/
DWebSocket.h47 class WebSocket {
73 BLINK_EXPORT static WebSocket* create(const WebDocument&, WebSocketClient*);
74 virtual ~WebSocket() { } in ~WebSocket()
/external/chromium_org/third_party/WebKit/Source/web/
DWebSocket.cpp38 WebSocket* WebSocket::create(const WebDocument& document, WebSocketClient* client) in create()
/external/chromium_org/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/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/chromium_org/third_party/pywebsocket/
DREADME.chromium10 pywebsocket is a WebSocket server which is intended for testing.
11 Chromium uses it for WebSocket related tests on Extensions, PPAPI, and so on.

1234