| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 , m_state(CONNECTING) | 228 , m_state(CONNECTING) |
| 229 , m_bufferedAmount(0) | 229 , m_bufferedAmount(0) |
| 230 , m_consumedBufferedAmount(0) | 230 , m_consumedBufferedAmount(0) |
| 231 , m_bufferedAmountAfterClose(0) | 231 , m_bufferedAmountAfterClose(0) |
| 232 , m_binaryType(BinaryTypeBlob) | 232 , m_binaryType(BinaryTypeBlob) |
| 233 , m_subprotocol("") | 233 , m_subprotocol("") |
| 234 , m_extensions("") | 234 , m_extensions("") |
| 235 , m_eventQueue(EventQueue::create(this)) | 235 , m_eventQueue(EventQueue::create(this)) |
| 236 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon
sumption) | 236 , m_bufferedAmountConsumeTimer(this, &DOMWebSocket::reflectBufferedAmountCon
sumption) |
| 237 { | 237 { |
| 238 ScriptWrappable::init(this); | |
| 239 } | 238 } |
| 240 | 239 |
| 241 DOMWebSocket::~DOMWebSocket() | 240 DOMWebSocket::~DOMWebSocket() |
| 242 { | 241 { |
| 243 ASSERT(!m_channel); | 242 ASSERT(!m_channel); |
| 244 } | 243 } |
| 245 | 244 |
| 246 void DOMWebSocket::logError(const String& message) | 245 void DOMWebSocket::logError(const String& message) |
| 247 { | 246 { |
| 248 executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource
, ErrorMessageLevel, message)); | 247 executionContext()->addConsoleMessage(ConsoleMessage::create(JSMessageSource
, ErrorMessageLevel, message)); |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 | 687 |
| 689 void DOMWebSocket::trace(Visitor* visitor) | 688 void DOMWebSocket::trace(Visitor* visitor) |
| 690 { | 689 { |
| 691 visitor->trace(m_channel); | 690 visitor->trace(m_channel); |
| 692 visitor->trace(m_eventQueue); | 691 visitor->trace(m_eventQueue); |
| 693 WebSocketChannelClient::trace(visitor); | 692 WebSocketChannelClient::trace(visitor); |
| 694 EventTargetWithInlineData::trace(visitor); | 693 EventTargetWithInlineData::trace(visitor); |
| 695 } | 694 } |
| 696 | 695 |
| 697 } // namespace blink | 696 } // namespace blink |
| OLD | NEW |