| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual String extensions() OVERRIDE; | 82 virtual String extensions() OVERRIDE; |
| 83 virtual WebSocketChannel::SendResult send(const String& message) OVERRIDE; | 83 virtual WebSocketChannel::SendResult send(const String& message) OVERRIDE; |
| 84 virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteO
ffset, unsigned byteLength) OVERRIDE; | 84 virtual WebSocketChannel::SendResult send(const ArrayBuffer&, unsigned byteO
ffset, unsigned byteLength) OVERRIDE; |
| 85 virtual WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>) OVERRI
DE; | 85 virtual WebSocketChannel::SendResult send(PassRefPtr<BlobDataHandle>) OVERRI
DE; |
| 86 virtual WebSocketChannel::SendResult send(PassOwnPtr<Vector<char> > data) OV
ERRIDE; | 86 virtual WebSocketChannel::SendResult send(PassOwnPtr<Vector<char> > data) OV
ERRIDE; |
| 87 virtual unsigned long bufferedAmount() const OVERRIDE; | 87 virtual unsigned long bufferedAmount() const OVERRIDE; |
| 88 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code | 88 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code |
| 89 // argument to omit payload. | 89 // argument to omit payload. |
| 90 virtual void close(int code, const String& reason) OVERRIDE; | 90 virtual void close(int code, const String& reason) OVERRIDE; |
| 91 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; | 91 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; |
| 92 using WebSocketChannel::fail; | |
| 93 virtual void disconnect() OVERRIDE; | 92 virtual void disconnect() OVERRIDE; |
| 94 | 93 |
| 95 virtual void suspend() OVERRIDE; | 94 virtual void suspend() OVERRIDE; |
| 96 virtual void resume() OVERRIDE; | 95 virtual void resume() OVERRIDE; |
| 97 | 96 |
| 98 virtual void trace(Visitor*) OVERRIDE; | 97 virtual void trace(Visitor*) OVERRIDE; |
| 99 | 98 |
| 100 private: | 99 private: |
| 101 enum MessageType { | 100 enum MessageType { |
| 102 MessageTypeText, | 101 MessageTypeText, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 String m_sourceURLAtConstruction; | 176 String m_sourceURLAtConstruction; |
| 178 unsigned m_lineNumberAtConstruction; | 177 unsigned m_lineNumberAtConstruction; |
| 179 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; | 178 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; |
| 180 | 179 |
| 181 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; | 180 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; |
| 182 }; | 181 }; |
| 183 | 182 |
| 184 } // namespace WebCore | 183 } // namespace WebCore |
| 185 | 184 |
| 186 #endif // NewWebSocketChannelImpl_h | 185 #endif // NewWebSocketChannelImpl_h |
| OLD | NEW |