OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 { | 211 { |
212 exceptionState.throwDOMException(InvalidStateError, "Still in CONNECTING sta
te."); | 212 exceptionState.throwDOMException(InvalidStateError, "Still in CONNECTING sta
te."); |
213 } | 213 } |
214 | 214 |
215 const char* DOMWebSocket::subprotocolSeperator() | 215 const char* DOMWebSocket::subprotocolSeperator() |
216 { | 216 { |
217 return ", "; | 217 return ", "; |
218 } | 218 } |
219 | 219 |
220 DOMWebSocket::DOMWebSocket(ExecutionContext* context) | 220 DOMWebSocket::DOMWebSocket(ExecutionContext* context) |
221 : ActiveDOMObject(context) | 221 : ActiveScriptWrappable(this) |
| 222 , ActiveDOMObject(context) |
222 , m_state(CONNECTING) | 223 , m_state(CONNECTING) |
223 , m_bufferedAmount(0) | 224 , m_bufferedAmount(0) |
224 , m_consumedBufferedAmount(0) | 225 , m_consumedBufferedAmount(0) |
225 , m_bufferedAmountAfterClose(0) | 226 , m_bufferedAmountAfterClose(0) |
226 , m_binaryType(BinaryTypeBlob) | 227 , m_binaryType(BinaryTypeBlob) |
227 , m_subprotocol("") | 228 , m_subprotocol("") |
228 , m_extensions("") | 229 , m_extensions("") |
229 , m_eventQueue(EventQueue::create(this)) | 230 , m_eventQueue(EventQueue::create(this)) |
230 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon
sumption) | 231 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon
sumption) |
231 { | 232 { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 DEFINE_TRACE(DOMWebSocket) | 714 DEFINE_TRACE(DOMWebSocket) |
714 { | 715 { |
715 visitor->trace(m_channel); | 716 visitor->trace(m_channel); |
716 visitor->trace(m_eventQueue); | 717 visitor->trace(m_eventQueue); |
717 WebSocketChannelClient::trace(visitor); | 718 WebSocketChannelClient::trace(visitor); |
718 RefCountedGarbageCollectedEventTargetWithInlineData<DOMWebSocket>::trace(vis
itor); | 719 RefCountedGarbageCollectedEventTargetWithInlineData<DOMWebSocket>::trace(vis
itor); |
719 ActiveDOMObject::trace(visitor); | 720 ActiveDOMObject::trace(visitor); |
720 } | 721 } |
721 | 722 |
722 } // namespace blink | 723 } // namespace blink |
OLD | NEW |