/external/chromium_org/ppapi/cpp/ |
H A D | websocket.h | 12 /// 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 D | websocket.cc | 25 WebSocket::WebSocket(const InstanceHandle& instance) { function in class:pp::WebSocket 32 WebSocket::~WebSocket() { 35 int32_t WebSocket::Connect(const Var& url, const Var protocols[], 55 int32_t WebSocket::Close(uint16_t code, const Var& reason, 65 int32_t WebSocket::ReceiveMessage(Var* message, 79 int32_t WebSocket::SendMessage(const Var& message) { 87 uint64_t WebSocket::GetBufferedAmount() { 94 uint16_t WebSocket [all...] |
/external/chromium_org/net/server/ |
H A D | web_socket.h | 17 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 D | web_socket.cc | 44 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 D | WebSocket.h | 47 class WebSocket { class in namespace:blink 73 BLINK_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 D | websocket.h | 26 // 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...] |
H A D | websocket.cc | 59 WebSocket::WebSocket(const GURL& url, WebSocketListener* listener) function in class:WebSocket 66 WebSocket::~WebSocket() { 70 void WebSocket::Connect(const net::CompletionCallback& callback) { 90 &WebSocket::OnSocketConnect, base::Unretained(this))); 95 bool WebSocket::Send(const std::string& message) { 118 void WebSocket::OnSocketConnect(int code) { 130 "Sec-WebSocket-Key: %s\r\n" 131 "Sec-WebSocket [all...] |
/external/chromium/net/websockets/ |
H A D | websocket.cc | 20 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 D | websocket.h | 5 // 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...] |
/external/chromium_org/third_party/WebKit/Source/modules/websockets/ |
H A D | WebSocket.h | 54 class WebSocket : public RefCounted<WebSocket>, public ScriptWrappable, public EventTargetWithInlineData, public ActiveDOMObject, public WebSocketChannelClient { class in namespace:WebCore 55 REFCOUNTED_EVENT_TARGET(WebSocket); 58 // WebSocket instances must be used with a wrapper since this class's 61 static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, ExceptionState&); 62 static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, const String& protocol, ExceptionState&); 63 static PassRefPtr<WebSocket> create(ExecutionContext*, const String& url, const Vector<String>& protocols, ExceptionState&); 64 virtual ~WebSocket(); 163 explicit WebSocket(ExecutionContext*);
|
H A D | WebSocket.cpp | 33 #include "modules/websockets/WebSocket.h" 66 WebSocket::EventQueue::EventQueue(EventTarget* target) 71 WebSocket::EventQueue::~EventQueue() { stop(); } 73 void WebSocket::EventQueue::dispatch(PassRefPtr<Event> event) 91 void WebSocket::EventQueue::suspend() 99 void WebSocket::EventQueue::resume() 107 void WebSocket::EventQueue::stop() 117 void WebSocket::EventQueue::dispatchQueuedEvents() 141 void WebSocket::EventQueue::resumeTimerFired(Timer<EventQueue>*) 211 const char* WebSocket 216 WebSocket::WebSocket(ExecutionContext* context) function in class:WebCore::WebSocket [all...] |