| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual String extensions() OVERRIDE; | 75 virtual String extensions() OVERRIDE; |
| 76 virtual WebSocketChannel::SendResult send(const String& message) OVERRIDE; | 76 virtual WebSocketChannel::SendResult send(const String& message) OVERRIDE; |
| 77 virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteO
ffset, unsigned byteLength) OVERRIDE; | 77 virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteO
ffset, unsigned byteLength) OVERRIDE; |
| 78 virtual WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>) OVERRI
DE; | 78 virtual WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>) OVERRI
DE; |
| 79 virtual WebSocketChannel::SendResult send(PassOwnPtr<Vector<char> > data) OV
ERRIDE; | 79 virtual WebSocketChannel::SendResult send(PassOwnPtr<Vector<char> > data) OV
ERRIDE; |
| 80 virtual unsigned long bufferedAmount() const OVERRIDE; | 80 virtual unsigned long bufferedAmount() const OVERRIDE; |
| 81 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code | 81 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code |
| 82 // argument to omit payload. | 82 // argument to omit payload. |
| 83 virtual void close(int code, const String& reason) OVERRIDE; | 83 virtual void close(int code, const String& reason) OVERRIDE; |
| 84 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; | 84 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; |
| 85 using WebSocketChannel::fail; | |
| 86 virtual void disconnect() OVERRIDE; | 85 virtual void disconnect() OVERRIDE; |
| 87 | 86 |
| 88 virtual void suspend() OVERRIDE; | 87 virtual void suspend() OVERRIDE; |
| 89 virtual void resume() OVERRIDE; | 88 virtual void resume() OVERRIDE; |
| 90 | 89 |
| 91 // SocketStreamHandleClient functions. | 90 // SocketStreamHandleClient functions. |
| 92 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE; | 91 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE; |
| 93 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE; | 92 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE; |
| 94 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in
t) OVERRIDE; | 93 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in
t) OVERRIDE; |
| 95 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t bufferedAmo
unt) OVERRIDE; | 94 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t bufferedAmo
unt) OVERRIDE; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 unsigned m_lineNumberAtConstruction; | 222 unsigned m_lineNumberAtConstruction; |
| 224 | 223 |
| 225 WebSocketPerMessageDeflate m_perMessageDeflate; | 224 WebSocketPerMessageDeflate m_perMessageDeflate; |
| 226 | 225 |
| 227 WebSocketDeflateFramer m_deflateFramer; | 226 WebSocketDeflateFramer m_deflateFramer; |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 } // namespace WebCore | 229 } // namespace WebCore |
| 231 | 230 |
| 232 #endif // MainThreadWebSocketChannel_h | 231 #endif // MainThreadWebSocketChannel_h |
| OLD | NEW |