Searched defs:WebSocket (Results 1 - 11 of 11) sorted by relevance

/external/chromium_org/ppapi/cpp/
H A Dwebsocket.h12 /// This file defines the WebSocket interface providing bi-directional,
26 /// The <code>WebSocket</code> class providing bi-directional,
28 class WebSocket : public Resource { class in namespace:pp
30 /// Constructs a WebSocket object.
34 explicit WebSocket(const InstanceHandle& instance);
36 /// Destructs a WebSocket object.
37 virtual ~WebSocket();
39 /// Connect() connects to the specified WebSocket server. You can call this
42 /// @param[in] url A <code>Var</code> of string type representing a WebSocket
61 /// the WebSocket AP
[all...]
H A Dwebsocket.cc25 WebSocket::WebSocket(const InstanceHandle& instance) { function in class:pp::WebSocket
32 WebSocket::~WebSocket() {
35 int32_t WebSocket::Connect(const Var& url, const Var protocols[],
58 int32_t WebSocket::Close(uint16_t code, const Var& reason,
68 int32_t WebSocket::ReceiveMessage(Var* message,
82 int32_t WebSocket::SendMessage(const Var& message) {
90 uint64_t WebSocket::GetBufferedAmount() {
97 uint16_t WebSocket
[all...]
/external/chromium_org/net/server/
H A Dweb_socket.h17 class WebSocket { class in namespace:net
26 static WebSocket* CreateWebSocket(HttpConnection* connection,
41 virtual ~WebSocket() {}
44 explicit WebSocket(HttpConnection* connection);
48 DISALLOW_COPY_AND_ASSIGN(WebSocket);
H A Dweb_socket.cc44 class WebSocketHixie76 : public net::WebSocket {
46 static net::WebSocket* Create(HttpConnection* connection,
73 "HTTP/1.1 101 WebSocket Protocol Handshake\r\n"
74 "Upgrade: WebSocket\r\n"
76 "Sec-WebSocket-Origin: %s\r\n"
77 "Sec-WebSocket-Location: %s\r\n"
114 size_t* pos) : WebSocket(connection) {
120 "Invalid request format. Sec-WebSocket-Key1 is empty or isn't "
127 "Invalid request format. Sec-WebSocket-Key2 is empty or isn't "
170 class WebSocketHybi17 : public WebSocket {
403 WebSocket::WebSocket(HttpConnection* connection) : connection_(connection) { function in class:net::WebSocket
[all...]
/external/chromium_org/third_party/WebKit/public/web/
H A DWebSocket.h47 class WebSocket { class in namespace:WebKit
73 WEBKIT_EXPORT static WebSocket* create(const WebDocument&, WebSocketClient*);
74 virtual ~WebSocket() { }
76 // These functions come from binaryType attribute of the WebSocket API
82 // See also, The WebSocket API - http://www.w3.org/TR/websockets/ .
/external/chromium_org/chrome/test/chromedriver/net/
H A Dwebsocket.cc24 WebSocket::WebSocket(const GURL& url, WebSocketListener* listener) function in class:WebSocket
39 WebSocket::~WebSocket() {
43 void WebSocket::Connect(const net::CompletionCallback& callback) {
49 &WebSocket::OnSocketConnect, base::Unretained(this)));
54 bool WebSocket::Send(const std::string& message) {
77 void WebSocket::OnSocketConnect(int code) {
89 "Sec-WebSocket-Key: %s\r\n"
90 "Sec-WebSocket
[all...]
H A Dwebsocket.h26 // A text-only, non-thread safe WebSocket. Must be created and used on a single
28 class WebSocket { class
31 WebSocket(const GURL& url, WebSocketListener* listener);
32 virtual ~WebSocket();
34 // Initializes the WebSocket connection. Invokes the given callback with
81 DISALLOW_COPY_AND_ASSIGN(WebSocket);
84 // Listens for WebSocket messages and disconnects on the same thread as the
85 // WebSocket.
90 // Called when a WebSocket message is received.
93 // Called when the WebSocket connectio
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
H A DWebSocket.h52 class WebSocket : public RefCounted<WebSocket>, public ScriptWrappable, public EventTarget, public ActiveDOMObject, public WebSocketChannelClient { class in namespace:WebCore
55 static PassRefPtr<WebSocket> create(ScriptExecutionContext*);
56 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& url, ExceptionState&);
57 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& url, const String& protocol, ExceptionState&);
58 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& url, const Vector<String>& protocols, ExceptionState&);
59 virtual ~WebSocket();
112 using RefCounted<WebSocket>::ref;
113 using RefCounted<WebSocket>::deref;
125 explicit WebSocket(ScriptExecutionContex
[all...]
H A DWebSocket.cpp33 #include "modules/websockets/WebSocket.h"
128 const char* WebSocket::subProtocolSeperator()
133 WebSocket::WebSocket(ScriptExecutionContext* context) function in class:WebCore::WebSocket
145 WebSocket::~WebSocket()
151 PassRefPtr<WebSocket> WebSocket::create(ScriptExecutionContext* context)
153 RefPtr<WebSocket> webSocket(adoptRef(new WebSocket(contex
[all...]
/external/chromium/net/websockets/
H A Dwebsocket.cc20 WebSocket::WebSocket(Request* request, WebSocketDelegate* delegate) function in class:net::WebSocket
41 WebSocket::~WebSocket() {
47 void WebSocket::Connect() {
67 void WebSocket::Send(const std::string& msg) {
72 // We must not send any data after we start the WebSocket closing handshake.
87 void WebSocket::Close() {
107 // If the WebSocket connection is not yet established, fail the WebSocket
[all...]
H A Dwebsocket.h5 // WebSocket protocol implementation in chromium.
6 // It is intended to be used for live experiment of WebSocket connectivity
8 // Note that it is not used for WebKit's WebSocket communication.
32 class WebSocket;
36 // WebSocket is constructed.
41 // Called when WebSocket connection has been established.
42 virtual void OnOpen(WebSocket* socket) = 0;
46 virtual void OnMessage(WebSocket* socket, const std::string& msg) = 0;
48 // Called when WebSocket error has been detected.
49 virtual void OnError(WebSocket* socke
58 class WebSocket : public base::RefCountedThreadSafe<WebSocket>, class in namespace:net
[all...]

Completed in 1193 milliseconds