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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 Document* m_document; | 186 Document* m_document; |
187 WebSocketChannelClient* m_client; | 187 WebSocketChannelClient* m_client; |
188 OwnPtr<WebSocketHandshake> m_handshake; | 188 OwnPtr<WebSocketHandshake> m_handshake; |
189 RefPtr<SocketStreamHandle> m_handle; | 189 RefPtr<SocketStreamHandle> m_handle; |
190 Vector<char> m_buffer; | 190 Vector<char> m_buffer; |
191 | 191 |
192 Timer<WebSocketChannel> m_resumeTimer; | 192 Timer<WebSocketChannel> m_resumeTimer; |
193 bool m_suspended; | 193 bool m_suspended; |
194 bool m_closing; | 194 bool m_closing; |
| 195 bool m_failed; |
195 bool m_receivedClosingHandshake; | 196 bool m_receivedClosingHandshake; |
196 Timer<WebSocketChannel> m_closingTimer; | 197 Timer<WebSocketChannel> m_closingTimer; |
197 bool m_closed; | 198 bool m_closed; |
198 bool m_shouldDiscardReceivedData; | 199 bool m_shouldDiscardReceivedData; |
199 unsigned long m_unhandledBufferedAmount; | 200 unsigned long m_unhandledBufferedAmount; |
200 | 201 |
201 unsigned long m_identifier; // m_identifier == 0 means that we could not obt
ain a valid identifier. | 202 unsigned long m_identifier; // m_identifier == 0 means that we could not obt
ain a valid identifier. |
202 | 203 |
203 // Private members only for hybi-10 protocol. | 204 // Private members only for hybi-10 protocol. |
204 bool m_hasContinuousFrame; | 205 bool m_hasContinuousFrame; |
205 WebSocketFrame::OpCode m_continuousFrameOpCode; | 206 WebSocketFrame::OpCode m_continuousFrameOpCode; |
206 Vector<char> m_continuousFrameData; | 207 Vector<char> m_continuousFrameData; |
207 unsigned short m_closeEventCode; | 208 unsigned short m_closeEventCode; |
208 String m_closeEventReason; | 209 String m_closeEventReason; |
209 | 210 |
210 Deque<OwnPtr<QueuedFrame> > m_outgoingFrameQueue; | 211 Deque<OwnPtr<QueuedFrame> > m_outgoingFrameQueue; |
211 OutgoingFrameQueueStatus m_outgoingFrameQueueStatus; | 212 OutgoingFrameQueueStatus m_outgoingFrameQueueStatus; |
212 | 213 |
213 // FIXME: Load two or more Blobs simultaneously for better performance. | 214 // FIXME: Load two or more Blobs simultaneously for better performance. |
214 OwnPtr<FileReaderLoader> m_blobLoader; | 215 OwnPtr<FileReaderLoader> m_blobLoader; |
215 BlobLoaderStatus m_blobLoaderStatus; | 216 BlobLoaderStatus m_blobLoaderStatus; |
216 | 217 |
217 WebSocketDeflateFramer m_deflateFramer; | 218 WebSocketDeflateFramer m_deflateFramer; |
218 }; | 219 }; |
219 | 220 |
220 } // namespace WebCore | 221 } // namespace WebCore |
221 | 222 |
222 #endif // WebSocketChannel_h | 223 #endif // WebSocketChannel_h |
OLD | NEW |