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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "wtf/ArrayBuffer.h" | 54 #include "wtf/ArrayBuffer.h" |
55 #include "wtf/ArrayBufferView.h" | 55 #include "wtf/ArrayBufferView.h" |
56 #include "wtf/Assertions.h" | 56 #include "wtf/Assertions.h" |
57 #include "wtf/HashSet.h" | 57 #include "wtf/HashSet.h" |
58 #include "wtf/PassOwnPtr.h" | 58 #include "wtf/PassOwnPtr.h" |
59 #include "wtf/StdLibExtras.h" | 59 #include "wtf/StdLibExtras.h" |
60 #include "wtf/text/CString.h" | 60 #include "wtf/text/CString.h" |
61 #include "wtf/text/StringBuilder.h" | 61 #include "wtf/text/StringBuilder.h" |
62 #include "wtf/text/WTFString.h" | 62 #include "wtf/text/WTFString.h" |
63 | 63 |
64 namespace WebCore { | 64 namespace blink { |
65 | 65 |
66 DOMWebSocket::EventQueue::EventQueue(EventTarget* target) | 66 DOMWebSocket::EventQueue::EventQueue(EventTarget* target) |
67 : m_state(Active) | 67 : m_state(Active) |
68 , m_target(target) | 68 , m_target(target) |
69 , m_resumeTimer(this, &EventQueue::resumeTimerFired) { } | 69 , m_resumeTimer(this, &EventQueue::resumeTimerFired) { } |
70 | 70 |
71 DOMWebSocket::EventQueue::~EventQueue() { stop(); } | 71 DOMWebSocket::EventQueue::~EventQueue() { stop(); } |
72 | 72 |
73 void DOMWebSocket::EventQueue::dispatch(PassRefPtrWillBeRawPtr<Event> event) | 73 void DOMWebSocket::EventQueue::dispatch(PassRefPtrWillBeRawPtr<Event> event) |
74 { | 74 { |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 } | 700 } |
701 | 701 |
702 void DOMWebSocket::trace(Visitor* visitor) | 702 void DOMWebSocket::trace(Visitor* visitor) |
703 { | 703 { |
704 visitor->trace(m_channel); | 704 visitor->trace(m_channel); |
705 visitor->trace(m_eventQueue); | 705 visitor->trace(m_eventQueue); |
706 WebSocketChannelClient::trace(visitor); | 706 WebSocketChannelClient::trace(visitor); |
707 EventTargetWithInlineData::trace(visitor); | 707 EventTargetWithInlineData::trace(visitor); |
708 } | 708 } |
709 | 709 |
710 } // namespace WebCore | 710 } // namespace blink |
OLD | NEW |